Error when Nginx reloads the configuration file today
650) this.width=650; "src=" Http://tshare365.com/ueditor/php/upload/image/20150506/1430875316568546.png "title=" 1430875316568546.png "alt=" Qq20150506090559.png "style=" Margin:0px;padding:0px;border:none;height:auto; "/>
Prompt invalid PID, open nginx.pid file, found inside is empty, in the net looked under, some said sudo can solve, but once again disappointed
| 12 |
[[email protected]_23_56 conf]# sudo /usr/local/nginx/sbin/nginx -s reloadnginx: [error] invalid PID number ""in "/usr/local/nginx/logs/nginx.pid" |
The PID number of the process is appended to the Nginx.pid, which solves the problem.
650) this.width=650; "src=" Http://tshare365.com/ueditor/php/upload/image/20150506/1430875599536550.png "title=" 1430875599536550.png "alt=" Qq20150506090802.png "style=" Margin:0px;padding:0px;border:none;height:auto; "/>
Note: If you do not find the Nginx.pig file, you can run/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf Specify the configuration file to generate Nginx.pid.
This article is from the "Dream to Reality" blog, please be sure to keep this source http://lookingdream.blog.51cto.com/5177800/1878383
Nginx Error Invalid PID number in reload time