nginx 上传128K以上文件 报错500

1. 给nginx的启动用户配置写tmp的权限

chown -R root:root /tmp/nginx_client_body_temp

 

2.以root用户启动nginx

nginx.conf中配置user root;

 

3.重启nginx

systemctl restart nginx

posted on 2021-03-08 08:19  佟言无忌  阅读(529)  评论(0编辑  收藏  举报