1、官方教程
https://gofrp.org/zh-cn/docs/setup/systemd/
2、github上全配置参考教程
https://github.com/fatedier/frp/blob/dev/conf/frpc_full_example.toml
3、我的配置记录
- 服务端
bindAddr = "0.0.0.0"
bindPort = 7000
vhostHTTPPort = 8484
auth.method = "token"
auth.token = "token123456"
webServer.addr = "0.0.0.0"
webServer.port = 7500
webServer.user = "admin"
webServer.password = "admin_Ckhaci"
# tls
#transport.tls.force = true
#transport.tls.certFile = "/etc/frp/ssl/server.crt"
#transport.tls.keyFile = "/etc/frp/ssl/server.key"
#transport.tls.trustedCaFile = "/etc/frp/ssl/ca.crt"
- 客户端
serverAddr = "10-.3-.16-.5-"
serverPort = 7000
auth.method = "token"
auth.token = "token123456"
[[proxies]]
name = "web"
type = "http"
localPort = 3000
customDomains = ["next.--.com"] # 自定义域名访问
4、1panel产品
https://1panel.cn/docs/installation/online_installation/
可以直接安装 frp服务端