/usr/local/etc/nginx/nginx.conf
默认 user nginx 修改为 有权限的用户:
user 【用户名】 【用户组】 例如: user pei root;
查看用户所在用户组的命令:id pei
修改后,重启nginx