Get the App
SLTechnology News&Howtos  ›  Servers  › 

The solution of starting Nginx error report

Shulou Source: shulou.com Published: 2022-06-03 05:19:59 09月21日 Update

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-

Tags: Again that is situation time result user so far configuration method Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Microsoft macOS OPPO Reno Shulou Information