将可执行文件包装成windows服务
在开发机上弄一个, 挺方便的
https://github.com/winsw/winsw/releases
写个winsw.xml, 放在和winsw同目录
代码语言:javascript复制<service>
<id>redis5</id>
<name>redis5</name>
<description>This service runs redis5 continuous integration system.</description>
<executable>E:softRedis-x64-5.0redis-server.exe</executable>
<arguments>E:softRedis-x64-5.0redis.windows.conf</arguments>
<log mode="roll"></log>
</service>
代码语言:javascript复制winsw install
winsw start