查看了一下nginx进程ps aux|grep nginx
发现都是nobody的进程,但是nginx的目录都是root用户,另外集群tomcat也是属于root用户,而且root启动,查看nginx.conf:
user nobody
改成:user root
停止nginx -s stop
重启nginx -c nginx.conf
发现都是nobody的进程,但是nginx的目录都是root用户,另外集群tomcat也是属于root用户,而且root启动,查看nginx.conf:
user nobody
改成:user root
停止nginx -s stop
重启nginx -c nginx.conf