打开nginx主配置文件nginx.conf,一般在/etc/nginx.conf这个位置,找到http{}段并修改以下内容

client_max_body_size 10M;

重启nginx使配置生效