mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3621] windows 怎么后台运行,不借用第三方工具 #2889
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#2889
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 @Yancy0220 on GitHub (Sep 18, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3621
Describe the feature request
windows 怎么后台运行,不借用第三方工具
Describe alternatives you've considered
No response
Affected area
@Glucy-2 commented on GitHub (Sep 19, 2023):
计划任务
@aienuo commented on GitHub (Sep 19, 2023):
我现在是把他注册到服务里面,参考:https://gitee.com/xinlau/DocumentationAndTutorials/blob/master/Windows/FRP-Client.md
@Walkersifolia commented on GitHub (Oct 8, 2023):
简单点的写个vbs放在启动文件夹里就行了,Win+R打开运行,输入shell:startup,把vbs脚本放里面,就像这样

@Walkersifolia commented on GitHub (Oct 8, 2023):
然后就能看见了,开机自启动,并且没有cmd窗口

@cholau0 commented on GitHub (Oct 16, 2023):
vbs这个好!
@wzshuang commented on GitHub (Oct 17, 2023):
求vbs脚本
@Walkersifolia commented on GitHub (Oct 17, 2023):
frp.bat里就是正常的frp启动命令
frpc -c D:/frp/frpc.ini@Walkersifolia commented on GitHub (Oct 17, 2023):
路径记得自己改一下
@wzshuang commented on GitHub (Oct 17, 2023):
收到,感谢
@Meta39 commented on GitHub (Oct 26, 2023):
最好还是用第三方工具WinSW把frpc做成服务放到服务里面。我试过写脚本放到shell:startup有时候不行!最稳妥还是用windows的服务!用米家智能WIFI插座 + 服务,现在很稳定!基本上想开机就开机,想关机就关机!

可以参考一下这篇文章《使用WinSW第三方工具设置开机启动》
@github-actions[bot] commented on GitHub (Nov 26, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
@Xiaeer commented on GitHub (Mar 23, 2026):
个人觉得这个 vbs 脚本稍微好些,自带重试功能,因为我发现,vbs 自启 frpc 时,网卡没加载完毕时,frpc 进程会直接崩溃退出,
loginFailExit = false设置了都没用,一样崩溃退出。