编辑nginx配置文件
1、打开Nginx配置文件,通常为 /etc/nginx/nginx.conf 。
2、在http块中添加以下代码:
http {
...
client_max_body_size 50M;
...
}
重启nginx服务
systemctl restart nginx
1、打开Nginx配置文件,通常为 /etc/nginx/nginx.conf 。
2、在http块中添加以下代码:
http {
...
client_max_body_size 50M;
...
}
systemctl restart nginx