Maybe you don’t have a folder, just create it,
Or maybe it’s not running Nginx,
The first time I made an error: it did not run, so I directly executed the refresh configuration.
My second mistake:
Or maybe it’s not running Nginx,
The first time I made an error: it did not run, so I directly executed the refresh configuration.
My second mistake:
Question:
After restarting the virtual machine, restarting Nginx will report an error: open() “/var/run/nginx/nginx.pid” failed (2: No such file or directory)
Solutions:
(1) Enter CD /usr/local/nginx/conf/ directory and edit the configuration file nginx.conf;
(2) Where there is a comment in the configuration file: # PID logs/nginx.pid;
(3) the annotation, go out and amended as: pid/usr/local/nginx/logs/nginx pid;
(4) Create the logs directory under /usr/local/nginx: mkdir /usr/local/nginx/logs
(5) start nginx service:/usr/local/nginx/sbin/nginx
Read More:
- Nginx startup error: nginx: [error] open() “/ var / run / nginx/ nginx.pid The solution of “failed (2: no such file or directory)”
- nginx: [error] open() “/usr/local/var/run/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/nginx/logs/nginx.pid“ failed (2: No such file or directory)
- nginx: [error] open() “/run/nginx.pid” failed (2: No such file or directory)
- nginx: [error] invalid PID number in /var/run/nginx.pid
- CentOS7 nginx Failed to read PID from file /run/nginx.pid: Invalid argument?
- Nginx error: nginx: [error] invalid PID number “” in “/run/nginx.pid”
- nginx: [error] invalid PID number ““ in “/data/nginx/logs/nginx.pid“
- 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
- Ubuntu 20.04 builds nginx 1.18.0 and MAC file transfer / download to server
- Ubuntu error: flAbsPath on /var/lib/dpkg/status failed – realpath (2: No such file or directory)
- Error! Failed to start nginx
- nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
- Error: enoent: no such file or directory, stat ‘/ usr / local / var / www / / book/gitbook/git
- To solve the problem of nginx accessing PHP file into download
- Error: enoent: no such file or directory, stat ‘/ usr / local / var / www / /_ book/gitbook/git
- nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open