重啟: nginx -s reload
例如:
[root@linuxserver sbin]#/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.confnginx的停止有三種方式:
1、檢視程序號
2、殺死程序
1、檢視程序號
2、殺死程序
[root@linuxserver ~]# kill -term 2132
或 [root@linuxserver ~]# kill -int 2132

[root@linuxserver ~]# pkill -9 nginx看到如下顯示nginx.conf syntax is ok
nginx.conf test is successful
說明配置檔案正確!
例如:
[root@linuxserver sbin]#/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.confnginx的停止有三種方式:
1、檢視程序號
2、殺死程序
1、檢視程序號
2、殺死程序
[root@linuxserver ~]# kill -term 2132
或 [root@linuxserver ~]# kill -int 2132

[root@linuxserver ~]# pkill -9 nginx看到如下顯示nginx.conf syntax is ok
nginx.conf test is successful
說明配置檔案正確!
nginx啟動 重啟 關閉
一 啟動 cd usr local nginx sbin nginx 二 重啟 更改配置重啟nginx kill hup 主程序號或程序號檔案路徑 或者使用 cd usr local nginx sbin nginx s reload 判斷配置檔案是否正確 nginx t c usr local n...
nginx啟動 重啟 關閉
一 啟動 cd usr local nginx sbin nginx 二 重啟 更改配置重啟nginx kill hup 主程序號或程序號檔案路徑 或者使用 cd usr local nginx sbin nginx s reload 判斷配置檔案是否正確 nginx t c usr local n...
nginx啟動 重啟 關閉
一 啟動 cd usr local nginx sbin nginx 二 重啟 更改配置重啟nginx kill hup 主程序號或程序號檔案路徑 或者使用 cd usr local nginx sbin nginx s reload 判斷配置檔案是否正確 nginx t c usr local n...