网站上传图片报错,NGINX日志显示 open() “/var/lib/nginx/tmp/client_body/0000000001” failed (13: Permission denied)
open() “/var/lib/nginx/tmp/client_body/0000000001” failed (13: Permission denied)
1. 首先查看 /var/lib/nginx/tmp/client_body 目录权限
2.与php-fpm nginx 用户一致
查看 php 用户
查看nginx
3.查看nginx.conf配置
增加如下配置
client_max_body_size 64m; 默认1m 根据机器性能调
cl...
原创
2021-08-05 16:15:54 ·
810 阅读 ·
0 评论