mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #126] 如何用Windows Service wrapper注册成服务运行? #70
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#70
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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>@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
@mbj2014 commented on GitHub (Oct 15, 2016):
谢谢!NSSM比WSW好用些,图形化配置界面的。
@lotc commented on GitHub (Jun 23, 2017):
@chmis8000 frpc v1.2 win64 注册的服务好像会报错, 请问可以提供一下你设置的具体参数吗?