window 添加服务
下载外壳程序
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

 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号