window10创建系统服务
2021-05-18 23:28
标签:用法 with ble pex 一个 net mode cti eth 前后端分离,不想启动vscode ,每次启动Nginx很麻烦,于是乎想到window内置服务 先上工具winsw :https://github.com/kohsuke/winsw/releases 用法(细节参考git) 1.下载 WinSW.NET4.exe ,放到nginx根目录,重命名为nginx-service.exe (名称随意),新建nginx-service.exe.config 和nginx-service.xml nginx-service.xml 内容如下,路径请根据自己环境调整 nginx-service.exe.config 内容如下, 最后cmd到此目录,执行:nginx-service.exe install 自己启动一下就完成了 追加一个删除服务的命令: sc delete 服务名 window10创建系统服务 标签:用法 with ble pex 一个 net mode cti eth 原文地址:https://www.cnblogs.com/luyang08/p/11725675.html 1 service>
2 id>nginxid>
3 name>Nginx Servicename>
4 description>High Performance Nginx Servicedescription>
5 logpath>E:\nginx\logslogpath>
6 log mode="roll-by-size">
7 sizeThreshold>10240sizeThreshold>
8 keepFiles>8keepFiles>
9 log>
10 executable>E:\nginx\nginx.exeexecutable>
11 startarguments>-p E:\nginxstartarguments>
12 stopexecutable>E:\nginx\nginx.exestopexecutable>
13 stoparguments>-p E:\nginx -s stopstoparguments>
14 service>
configuration>
startup>
supportedRuntime version="v4.0" />
startup>
runtime>
generatePublisherEvidence enabled="false" />
runtime>
configuration>
E:\nginx>nginx-service.exe install
2019-10-23 11:02:45,158 INFO - Installing the service with id ‘nginx‘
E:\apache-activemq\bin> sc delete nginx
[SC] DeleteService 成功
上一篇:c#画图之柱形图