[root@v0 ~]# /usr/local/nginx/sbin/nginx
[root@v0 ~]# ps -ef | grep nginx
root 27678 1 0 13:53 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
nobody 27679 27678 0 13:53 ? 00:00:00 nginx: worker process
root 27743 27350 0 13:53 pts/0 00:00:00 grep nginx
[root@v0 ~]# lsof -i:80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nginx 27678 root 6u IPv4 2680716 0t0 TCP *:http (LISTEN)
nginx 27679 nobody 6u IPv4 2680716 0t0 TCP *:http (LISTEN)
注意上面user一栏,这里表明我是用root用户启动的nginx,nginx里面默认的用户是nobody,user选项可以设置此用户