在service下添加参数:client_max_body_size
重新启动报错:
service nginx restart
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
关闭nginx:service nginx stop
使用:netstat -ntlp
查看nginx端口并且使用关闭nginx kill -9 进程号
或者使用:pkill -9 nginx
然后重启nginx:service nginx start