1.4 KiB
1.4 KiB
Run frp
as Windows service
- Download winsw(
WinSW.NET2.exe
means need.NET 2.0
runtime,and so on),Rename it tofrpc-service.exe
andfrps-service.exe
. - Put
frpc-service.xml
andfrpc-service.xml
to same directory asfrp*-service.exe
. - Default location of frp is
C:\frp
, you can edit the xml config file.
install service
# for frp client
frpc-service.exe install
# for frp server
frps-service.exe install
You will see frp service in windows service manager
uninstall service
# for frp client
frpc-service.exe uninstall
# for frp server
frps-service.exe uninstall
以Windows服务的方式运行frp
- 下载winsw(它有多个运行时版本,
WinSW.NET2.exe
的意思是需要安装.NET 2.0
),然后将其分别重命名为两个文件:frpc-service.exe
和frps-service.exe
. - 将
frpc-service.xml
和frpc-service.xml
放到frp*-service.exe
相同的目录下. - 默认的frp安装目录是
C:\frp
, 你可以在xml配置文件中修改。
创建服务
# for frp client
frpc-service.exe install
# for frp server
frps-service.exe install
服务创建后你在Windows的服务管理器里面就能看见frp服务了
服务卸载
# for frp client
frpc-service.exe uninstall
# for frp server
frps-service.exe uninstall