以windows服务的方式运行FRP
本文最后更新于:2023年1月13日 下午
前几天看见有人在frp提工单问是否可以支持windows服务,正好有解决类似问题的经验,于是给作者提了一个PR,不过作者表示:
- 类似脚本打算放到专门的仓库中维护
- 那个专门仓库目前无人维护
那就是没法了,只能记在自己的小本子上了。
效果演示

English:
Run frp as Windows service
- Download winsw Rename it to
frpc-service.exeorfrps-service.exe. - Put
frpc-service.xmlandfrpc-service.xmlto same directory asfrpc-service.exeorfrps-service.exe. - Default location of frp is
C:\frp, you can edit the xml config file.
install service
1 | |
You will see frp service in windows service manager
uninstall service
1 | |
中文:
以Windows服务的方式运行frp
- 下载winsw然后将其分别重命名为两个文件:
frpc-service.exe或frps-service.exe. - 将
frpc-service.xml和frpc-service.xml放到frpc-service.exe或frps-service.exe相同的目录下. - 默认的frp安装目录是
C:\frp, 你可以在xml配置文件中修改。
创建服务
1 | |
服务创建后你在Windows的服务管理器里面就能看见frp服务了
服务卸载
1 | |
脚本(scripts)
frps-service.xml
1 | |
frps-service.xml
1 | |
screenshot
frp install dir

References
以windows服务的方式运行FRP
https://baymax55.github.io/2022/09/13/network/以windows服务的方式运行FRP/