zoukankan      html  css  js  c++  java
  • [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  
    

      

     

  • 相关阅读:
    053335
    053334
    053333
    053332
    053331
    053330
    053329
    053328
    053327
    053326
  • 原文地址:https://www.cnblogs.com/love3556/p/5962388.html
Copyright © 2011-2022 走看看