提示:新版frp不支持win7,建议win10及以上系统。win7可以考虑下载0.49.0版尝试。
frp服务端配置文件frps.toml参考
bindAddr = "10.1.5.1"
bindPort = 7000
kcpBindPort = 7000
vhostHTTPPort = 8080
vhostHTTPSPort = 8081
subDomainHost = "xxxx.net"
webServer.addr = "0.0.0.0"
webServer.port = 7500
webServer.user = "user"
webServer.password = "xxxx"
transport.maxPoolCount = 50
auth.token = "xxxx"
custom404Page = "/frps/404.html"
frps.service文件及路径
/etc/systemd/system/frps.service
[Unit]
Description = Frp Server Service
After = network.target syslog.target
Wants = network.target
[Service]
Type = simple
User=root
Group=root
Restart = on-failure
RestartSec = 5s
ExecStart = /frps/frps -c /frps/frps.toml
LimitNOFILE = 1048576
[Install]
WantedBy = multi-user.target