歡迎您光臨本站 註冊首頁

nginx啟動 停止 重啟等 管理腳本

←手機掃碼閱讀     火星人 @ 2014-03-03 , reply:0

nginx啟動 停止 重啟等 管理腳本

nginx啟動 停止 重啟等 管理腳本



nginx啟動 停止 重啟等 管理腳本默認編譯安裝的Nginx是缺少管理 nginx啟動 停止 重啟等
這個腳本的作用有開機啟動 停止 重啟 配置文件檢查 功能
腳本中定義的nginx安裝路徑是/usr/local/nginx如果你的nginx不是在這個路徑下請更腳本中第21行NGINX_HOME變數值
下載並添加到啟動服務中cd /etc/init.d/
wget http://www.9ai9.net/download/shell/nginx
chmod 755 nginx
chkconfig --level 35 nginx on複製代碼
啟動 停止 重啟 配置文件檢查 功能/etc/init.d/nginx.sh {start|stop|restart|status|checkconfig|reload|cutlog}複製代碼
接下來,你們懂的
《解決方案》

新手,不是很懂:dizzy:

[火星人 ] nginx啟動 停止 重啟等 管理腳本已經有275次圍觀

http://coctec.com/docs/service/show-post-2372.html