前言:
無意間使用 kill -9 命令殺掉了nginx的主進程,當我再次使用 ./nginx -s reload 重新刷新nginx的時候,一直出現了下面的錯誤信息:
nginx: [alert] kill(27905, 1) failed (3: No such process)
同時,執行命令 ./nginx -t 返回的結果如下:
nginx: the configuration file /opt/nginx-1.4.7/conf/nginx.conf syntax is ok nginx: configuration file /opt/nginx-1.4.7/conf/nginx.conf test is successful
nginx正常運行,只是無法使用reload刷新,我也頭大了,怎么辦呢。
網上找到如下解決方法:
文章地址: http://www.2cto.com/os/201303/198394.html
文章中有一個命令 fuser -n tcp 80 查看80端口被哪些程序占用。最終控制台輸出的信息如下:
80/tcp: 4613 4614
好吧,kill掉這2個子進程。
重新啟動nginx,再次使用 ./nginx -s reload ,,OK了!
還好沒有釀成大禍。。記錄下來,以便需要時參考。