nginx啟動命令為 /usr/local/nginx/sbin/nginx,如果啟動后需要重啟前面目錄地址不變最后的命令改完nginx -s reload即可,使用完后需要關閉也是前面目錄不變命令改完nginx -s stop。