修改配置文件 nginx.conf,根据自己的实际情况修改大小

http {
    client_max_body_size 10m;
}

配置完成后重启nginx

参考文章