[root@centos7 conf.d]# nginx -s reopen
nginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored
nginx: [error] invalid PID number "" in "/var/run/nginx.pid"
Set the loaded configuration file to:
[root@centos7 conf.d]# nginx -c /etc/nginx/nginx.conf
[root@centos7 conf.d]# nginx -s reload
[root@centos7 conf.d]# nginx -v
nginx version: nginx/1.18.0
[root@centos7 conf.d]# nginx -s reopen
[root@centos7 conf.d]#
div>
Read More:
- Nginx error: nginx: [error] invalid PID number “” in “/run/nginx.pid”
- nginx: [error] invalid PID number ““ in “/data/nginx/logs/nginx.pid“
- Nginx startup error: nginx: [error] open() “/ var / run / nginx/ nginx.pid The solution of “failed (2: no such file or directory)”
- CentOS7 nginx Failed to read PID from file /run/nginx.pid: Invalid argument?
- nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)
- /var/run/nginx/nginx.pid” failed (2: No such file or directory)
- nginx: open() “/var/run/nginx.pid“ failed (2: No such file or directory)
- nginx: [error] open() “/usr/local/var/run/nginx.pid” failed (2: No such file or directory)
- nginx: [error] open() “/run/nginx.pid” failed (2: No such file or directory)
- nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
- Solve the problem of starting nginx nginx.pid error
- Plug in loaded: fastmirror, langpacks / var / run/ yum.pid Locked, another program with PID 2323 is running
- socket.error : [errno 10048] and view PID process number and port number
- Nginx start error: job for nginx.service failed because the control process exited with error code
- Nginx installation in MAC
- nginx: [warn] conflicting server name “www.yqq.org“ on 0.0.0.0:80, ignored
- nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
- The garbled problem of hot deployment in nginx
- Implementation of HTTPS file server based on nginx in win2012
- Resolve nginx startup failure