一、查看進程nginx
ps -ef|grep nginx
二、進入nginx安裝目錄sbin下,執行命令:web
./nginx -t
以下顯示:server
syntax is ok
test is successful
三、繼續執行命令:進程
nginx -c /usr/local/webserver/nginx/conf/nginx.conf
nginx -s reload