修改下载后的exe
文件和xml
文件名称,是什么名称并不重要,但是必须保证两个文件的名称一致
winsw的配置如下
<service>
<id>nginx</id>
<name>nginx</name>
<description>This service runs nginx continuous integration system.</description>
<executable>C:\Applications\nginx-1.15.7\nginx.exe</executable>
<arguments>-jar "%BASE%\optimize.api.jar"</arguments>
<logmode>rotate</logmode>
<logpath>C:\Applications\nginx-1.15.7\logs</logpath>
<startargument>-p C:\Applications\nginx-1.15.7</startargument>
<stopargument>-p C:\Applications\nginx-1.15.7 -s stop</stopargument>
</service>
winsw-1.9-bin.exe install
winsw-1.9-bin.exe uninstall
winsw-1.9-bin.exe start
winsw-1.9-bin.exe stop
原文:https://www.cnblogs.com/hwang126/p/10085800.html