[emerg]: getpwnam(“nginx”) failed
[root@localhost nginx-1.11.2]# /usr/local/nginx/sbin/nginx nginx: [emerg] getpwnam("nginx") failed
没有安装nginx用户导致的无法启动
[root@localhost nginx-1.11.2]# useradd -s /sbin/nologin -M nginx [root@localhost nginx-1.11.2]# id nginx
[root@localhost nginx-1.11.2]# /usr/local/nginx/sbin/nginx [root@localhost nginx-1.11.2]# netstat -tlunp | grep nginx tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 9709/nginx: master