nginx启动用户和nginx工作用户要一致

[root@bogon default]# ps aux | grep "nginx: worker process" | awk '{print $1}'
root
root
root
root
root

[root@bogon default]# vi /etc/nginx/nginx.conf

user root root;                # 这个用户要和上面的用户保持一致
worker_processes auto;

worker_rlimit_nofile 51200;

 

posted @ 2018-12-15 17:46  effortsing  阅读(3193)  评论(0编辑  收藏  举报