參考完整配置:https://www.cnblogs.com/cbpm-wuhq/p/12969365.html
服務命令
以上內容配置好了之後,在nginx安裝目錄下以管理員運行命令:.\nginx-service.exe install 就成功將其註冊爲Windows服務了,然後運行 .\nginx-service.exe start 啓動服務。這時我們可以在Windows任務管理器的服務中查看該是否成功啓動。
注:
nginx-service.exe install 命令可註冊對應的系統服務
nginx-service.exe uninstall 命令可刪除對應的系統服務
nginx-service.exe stop 命令可停止對應的系統服務
nginx-service.exe start 命令可啓動對應的系統服務