Nginx重启失败/run/nginx.pid failed (2: No such file or directory)
When deploying the project, an error is reported when restarting the nginx server after configuring the open port configuration
Go to the /run directory and find that there is no nginx.pid file.
Solution: enter etc/nginx/conf/nginx.conf file and modify the location of pid as below:
Read More:
- [Solved] nginx: [error] open() “/usr/local/nginx/nginx.pid” failed (2: No such file or directory)
- Nginx Startup Error: “/var/run/nginx/nginx.pid” failed” [How to Solve]
- Nginx error: nginx: [error] invalid PID number ““ in “/run/nginx.pid“
- Nginx Error: Swap file “/etc/nginx/.nginx.conf.swp“ already exists
- Nginx Error: nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /project/api/nginx.conf:
- Nginx Startup Error: Job for nginx.service failed because the control process exited with error code
- Restart and stop of nginx in Linux service
- How to Fix No default.conf file in conf.d after Installing Nginx
- Nginx configuration 80 can be accessed by forcing jump 443 or not
- nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
- Nginx Error: [emerg] bind() to [::]:80 failed (98: Address already in use)
- [Solved] ××: error while loading shared libraries: ××.so.19: cannot open shared object file: No such file or directory
- [How to Solve] ffprobe ‘***: No such file or directory‘
- [Solved] Nginx Startup Error: directive is not allowed here in
- Common configuration methods of nginx
- [Ubuntu] How to Solve dpkg Error: dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory
- [Solved] Python Import mmcv Warning: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- Solve the problem of 404 Not Found error in nginx accessing dynamic interface
- [Solved] fatal error: openssl/hmac.h: No such file or directory
- Error: loading shared libraries: cannot open shared object file: No such file or directory