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;