标签:ref 注销 下载地址 win 系统 block tar ota github
下载地址:http://repo.jenkins-ci.org/releases/com/sun/winsw/winsw/
介绍:
A wrapper executable that can be used to host any executable as an Windows service, in a liberal license
(一个可执行文件的包装器,可以托管任何可执行文件作为windows服务)
好处:
<?xml version="1.0" encoding="UTF-8" ?>
<service>
<id>Nginx</id>
<name>Nginx</name>
<description>本服务用于加载Nginx服务,请确保开机启动。</description>
<logpath>C:\nginx\logs</logpath>
<executable>nginx.exe</executable>
<stopexecutable>nginx.exe</stopexecutable>
<stopargument>-s</stopargument>
<stopargument>stop</stopargument>
<logmode>rotate</logmode>
</service>
安装
nginx-service.exe install
卸载
nginx-service.exe uninstall
net start nginx
net stop nginx
利用WindowsServiceWrapper(WinSW)将Nginx包装为系统服务
标签:ref 注销 下载地址 win 系统 block tar ota github
原文地址:https://www.cnblogs.com/eedc/p/12868328.html