https://www.cnblogs.com/qianzf/p/6807167.html
winsw下载
https://github.com/kohsuke/winsw/releases
winsw使用
编写配置文件
我们需要编写一个和程序同名的XML文件作为winsw的配置文件。文件大体上长这样,这是官网的例子。
<service>
<id>nchg</id>
<name>nchg</name>
<description>nchg ftp server.</description>
<executable>nchg.bat</executable>
<logmode>rotate</logmode>
</service>
注册,关闭服务
```
winsw install
winsw uninstall
```