修改nginx配置文件重启时,出现如下错误 nginx: [error] invalid PID number "" in "/run/nginx.pid" 检查语法是对的 [root@peipei conf]# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful 解决方法 killall [root@peipei conf]# killall nginx [root@peipei conf]# nginx [root@peipei conf]# ps aux|grep nginx root 12251 0.0 0.0 105500 1988 ? Ss 19:53 0:00 nginx: master process nginx nginx 12252 0.0 0.0 105968 2980 ? S 19:53 0:00 nginx: worker process nginx 12253 0.0 0.0 105968 2980 ? S 19:53 0:00 nginx: worker process root 12262 0.0 0.0 112708 988 pts/0 S+ 19:54 0:00 grep --color=auto nginx