1、查看進程
ps -ef|grep nginx
2、進入nginx安裝目錄sbin下,執行命令:
./nginx -t
如下顯示:
syntax is ok
test is successful
3、繼續執行命令:
nginx -c /usr/local/webserver/nginx/conf/nginx.conf
nginx -s reload
1、查看進程
ps -ef|grep nginx
2、進入nginx安裝目錄sbin下,執行命令:
./nginx -t
如下顯示:
syntax is ok
test is successful
3、繼續執行命令:
nginx -c /usr/local/webserver/nginx/conf/nginx.conf
nginx -s reload
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。