1. On centos7, after configuring the nginx proxy service,
systemctl status nginx.service
error:
Failed to read PID from file /run/nginx.pid: Invalid argument
2. See a lot of said to delete change nginx.pid file, after trying, invalid.
. 3. Then a solution was found:
the mkdir -p/etc/systemd/system/nginx. Service. D. p>
printf “[Service] \ nExecStartPost =/bin/sleep 0.1 \ n” & gt; /etc/systemd/system/nginx.service.d/override.conf
4. Finally, execute the command
systemctl daemon – reload p>
systemctl restart nginx.service
solves the problem
Read More:
- Nginx error: nginx: [error] invalid PID number “” in “/run/nginx.pid”
- nginx: [error] invalid PID number in /var/run/nginx.pid
- 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] invalid PID number ““ in “/data/nginx/logs/nginx.pid“
- nginx: open() “/var/run/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: [error] open() “/usr/local/var/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
- Nginx start error: job for nginx.service failed because the control process exited with error code
- The solution of centos7 in VMware virtual machine unable to access after installing nginx
- The solution of centos7’s inaccessibility after installing nginx
- nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
- MySQL restart error the server quit without updating PID file
- Ubuntu 20.04 builds nginx 1.18.0 and MAC file transfer / download to server
- Error! Failed to start nginx
- To solve the problem of nginx accessing PHP file into download