nginx的权限问题,13: Permission denied解决办法

查看了一下nginx进程ps aux|grep nginx





发现都是nobody的进程,但是nginx的目录都是root用户,另外集群tomcat也是属于root用户,而且root启动,查看nginx.conf:





user nobody





改成:user root





停止nginx -s stop





重启nginx -c nginx.conf





测试...





搞定。