對這文章發表回應
發表限制: 非會員 可以發表
發表者: 冷日 發表時間: 2018/12/21 9:53:32
在windows下用winsw把nginx當成服務運行
1. 下載winsw
https://github.com/kohsuke/winsw/releases
2. 配置winsw.xml,把winsw放在nginx同一目錄
3.安裝,以管理員身份啟動cmd
4.啟動、關閉服務
原文出處:在windows下用winsw把nginx当成服务运行 - Freewind的专栏 - CSDN博客
1. 下載winsw
https://github.com/kohsuke/winsw/releases
2. 配置winsw.xml,把winsw放在nginx同一目錄
<configuration>
<id>nginx</id>
<name>nginx</name>
<description>nginx</description>
<executable>%BASE%/nginx.exe</executable>
<stopexecutable>%BASE%/nginx.exe -s stop</stopexecutable>
<logpath>%BASE%/logs/</logpath>
<logmode>roll</logmode>
<depend></depend>
</configuration>
3.安裝,以管理員身份啟動cmd
winsw install
winsw uninstall //卸載
4.啟動、關閉服務
net start nginx
net stop nginx
原文出處:在windows下用winsw把nginx当成服务运行 - Freewind的专栏 - CSDN博客