The solution of starting Nginx error report
1. After the installation and configuration of Nginx, the only problem is to restart. An error was reported as follows:
[root@Centos01] # / usr/local/nginx/sbin/nginxnginx: [emerg] getpwnam ("nginx") failed
2. In a situation like this, Nginx users are not installed, or there may be a wrong number during creation (self-troubleshooting)
[root@Centos01] # useradd-M-s / sbin/nologin nginx
3. If you start it again, you won't make a mistake.
[root@Centos01] # / usr/local/nginx/sbin/nginx [root@Centos01] # netstat-anptu | grep nginxtcp 0 0 0.0 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0 of the anptu * LISTEN 9709/nginx: master
-this is the end of this article. Thank you for reading-