Restart the server, access the Web service found unable to browse! After landing the server into the Nginx use./nginx-s Reload re-read the configuration file, found the nginx: [ERROR] Open () "/usr/local/nginx/logs/ Nginx.pid "failed (2:no such file or directory) error, go to logs files found sure there are no nginx.pid files
[Email protected] sbin]#/nginx-s Reload
Nginx: [ERROR] Open () "/usr/local/nginx/logs/nginx.pid" failed (2:no such file or directory)
Workaround:
[Email protected] nginx]#/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf
Specify the location of the nginx.conf file using the NGINX-C parameter
[Email protected] nginx]# CD logs/
[email protected] logs]# LL
Total Dosage 12
-rw-r--r--1 root root 1246 December 9 18:10 Access.log
-rw-r--r--1 root root 516 December 15:39 Error.log
-rw-r--r--1 root root 5 December 15:38 nginx.pid
Look at the Nginx.pid file already there.
Fix Nginx: [ERROR] Open () "/usr/local/nginx/logs/nginx.pid