[GH-ISSUE #126] 如何用Windows Service wrapper注册成服务运行? #70

Closed
opened 2026-05-05 11:42:17 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @mbj2014 on GitHub (Oct 8, 2016).
Original GitHub issue: https://github.com/fatedier/frp/issues/126

这个需要用命令行方式启动,尝试用WSW注册成服务,但启动后报错意外终止。

还有没有停止运行的命令行。

WSW配置如下:
<?xml version="1.0" encoding="UTF-8" ?> <service> <id>frps</id> <name>frpServer</name> <description>frp内网发布服务</description> <executable>D:\VPN\frps.exe</executable> <logpath>D:\VPN\</logpath> <logmode>roll</logmode> <depend></depend> <startargument></startargument> <stopargument></stopargument> </service>

Originally created by @mbj2014 on GitHub (Oct 8, 2016). Original GitHub issue: https://github.com/fatedier/frp/issues/126 这个需要用命令行方式启动,尝试用WSW注册成服务,但启动后报错意外终止。 还有没有停止运行的命令行。 WSW配置如下: `<?xml version="1.0" encoding="UTF-8" ?> <service> <id>frps</id> <name>frpServer</name> <description>frp内网发布服务</description> <executable>D:\VPN\frps.exe</executable> <logpath>D:\VPN\</logpath> <logmode>roll</logmode> <depend></depend> <startargument></startargument> <stopargument></stopargument> </service>`
Author
Owner

@chmis8000 commented on GitHub (Oct 9, 2016):

windows,请用 NSSM - the Non-Sucking Service Manager http://www.nssm.cc/
举例:
安装服务: nssm install frpc c:\Tools\frpc.exe
移除服务: nssm remove frpc
修改服务: nssm edit frpc
启动服务: nssm start frpc
停止服务:nssm stop frpc

<!-- gh-comment-id:252470317 --> @chmis8000 commented on GitHub (Oct 9, 2016): windows,请用 NSSM - the Non-Sucking Service Manager http://www.nssm.cc/ 举例: 安装服务: nssm install frpc c:\Tools\frpc.exe 移除服务: nssm remove frpc 修改服务: nssm edit frpc 启动服务: nssm start frpc 停止服务:nssm stop frpc
Author
Owner

@mbj2014 commented on GitHub (Oct 15, 2016):

谢谢!NSSM比WSW好用些,图形化配置界面的。

<!-- gh-comment-id:253952515 --> @mbj2014 commented on GitHub (Oct 15, 2016): 谢谢!NSSM比WSW好用些,图形化配置界面的。
Author
Owner

@lotc commented on GitHub (Jun 23, 2017):

@chmis8000 frpc v1.2 win64 注册的服务好像会报错, 请问可以提供一下你设置的具体参数吗?

<!-- gh-comment-id:310544977 --> @lotc commented on GitHub (Jun 23, 2017): @chmis8000 frpc v1.2 win64 注册的服务好像会报错, 请问可以提供一下你设置的具体参数吗?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#70
No description provided.