直接可在定時任務,一個停止Nginx計劃任務,一個啟動Nginx計劃任務。

Nginx停止:
/etc/init.d/nginx stop

Nginx啟動:
/etc/init.d/nginx start