[emerg]: getpwnam(“nginx”) failed
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[emerg]: getpwnam(“nginx”) failed相关的知识,希望对你有一定的参考价值。
[[email protected] nginx-1.11.2]# /usr/local/nginx/sbin/nginx nginx: [emerg] getpwnam("nginx") failed
没有安装nginx用户导致的无法启动
[[email protected] nginx-1.11.2]# useradd -s /sbin/nologin -M nginx [[email protected] nginx-1.11.2]# id nginx
[[email protected] nginx-1.11.2]# /usr/local/nginx/sbin/nginx [[email protected] 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的主要内容,如果未能解决你的问题,请参考以下文章
nginx安装 nginx: [emerg] getpwnam(“www”) failed 错误
nginx: [emerg] getpwnam("nginx") failed
nginx: [emerg] getpwnam(“www”) failed
nginx: [emerg] getpwnam("www") failed