查看ngin.conf pid的內容
例如:
pid /usr/local/nginx/logs/nginx.pid
根據以上配置內容來做,檢查/usr/local/nginx/logs/是否存在,如不存在需要手動創建。
執行:
nginx -c /etc/nginx/nginx.conf
再次重啟:
nginx -s reload
此問題是因為系統重啟后nginx.pid文件被刪除了,所以需要重新配置和創建
例如:
pid /usr/local/nginx/logs/nginx.pid
根據以上配置內容來做,檢查/usr/local/nginx/logs/是否存在,如不存在需要手動創建。
執行:
nginx -c /etc/nginx/nginx.conf
再次重啟:
nginx -s reload
此問題是因為系統重啟后nginx.pid文件被刪除了,所以需要重新配置和創建
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。