nginx 出现 nginx: [emerg] getpwnam("nginx") failed 错误

[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

你可能感兴趣的:(Nginx)