首页 > Windows开发 > 详细

window 添加服务

时间:2021-05-31 21:22:45      阅读:21      评论:0      收藏:0      [点我收藏+]

下载外壳程序

https://github.com/kohsuke/winsw/releases

配置文件

<service>
  <!-- ID of the service. It should be unique across the Windows system-->
  <id>FRP</id>
  <!-- Path to the executable, which should be started -->
  <!-- CAUTION: Don‘t put arguments here. Use <arguments> instead. -->
  <executable>E:\init\frp_0.36.2_windows_amd64\frpc.exe</executable>
  <arguments>-c frpc.ini</arguments>
</service>

常用程序

//注册服务
winsw.exe install
//卸载服务
winsw.exe uninstall
//启动服务
winsw.exe start
//停止服务
winsw.exe stop
//重启服务
winsw.exe restart
//查看状态
winsw.exe status

window 添加服务

原文:https://www.cnblogs.com/wangshuyi/p/14832622.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!