首页 > 其他 > 详细

[emerg]: getpwnam(“nginx”) failed

时间:2016-10-15 02:17:32      阅读:178      评论:0      收藏:0      [点我收藏+]
[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  

  

 

[emerg]: getpwnam(“nginx”) failed

原文:http://www.cnblogs.com/love3556/p/5962388.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!