1. 给nginx的启动用户配置写tmp的权限
chown -R root:root /tmp/nginx_client_body_temp
2.以root用户启动nginx
nginx.conf中配置user root;
3.重启nginx
systemctl restart nginx
nginx 上传128K以上文件 报错500
原文:https://www.cnblogs.com/toxufe/p/14497770.html