After the server is restarted, it is OK to execute nginx-T, but an error is reported when executing nginx-S Reload
nginx: [error] invalid PID number “” in “/run/nginx.pid”
Solutions:
You need to do it first
Nginx – c/etc/nginx/nginx. Conf
The path to the nginx.conf file can be found in the return of nginx-t.
nginx -s reload
nginx: [error] invalid PID number “” in “/run/nginx.pid”
Solutions:
You need to do it first
Nginx – c/etc/nginx/nginx. Conf
The path to the nginx.conf file can be found in the return of nginx-t.
nginx -s reload
Read More:
- nginx: [error] invalid PID number in /var/run/nginx.pid
- nginx: [error] invalid PID number ““ in “/data/nginx/logs/nginx.pid“
- CentOS7 nginx Failed to read PID from file /run/nginx.pid: Invalid argument?
- Nginx startup error: nginx: [error] open() “/ var / run / nginx/ nginx.pid The solution of “failed (2: no such file or directory)”
- nginx: [error] open() "/var/run/nginx/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)
- /var/run/nginx/nginx.pid” failed (2: No such file or directory)
- nginx: [error] open() “/run/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)
- Solve the problem of starting nginx nginx.pid error
- Nginx start error: job for nginx.service failed because the control process exited with error code
- Nginx installation in MAC
- nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
- Plug in loaded: fastmirror, langpacks / var / run/ yum.pid Locked, another program with PID 2323 is running
- Resolve nginx startup failure
- Nginx upload error 413 request entity too large
- Error! Failed to start nginx
- The garbled problem of hot deployment in nginx
- Implementation of HTTPS file server based on nginx in win2012