一、安装
1、源码地址
https://github.com/fatedier/frp
2、中文文档
https://github.com/fatedier/frp/blob/master/README_zh.md
3、安装部署
#所有发布版本下载地址
https://github.com/fatedier/frp/releases
#安装命令(服务端和客户端都执行)
wget https://github.com/fatedier/frp/releases/download/v0.29.0/frp_0.29.0_linux_amd64.tar.gz
tar -xvf frp_0.29.0_linux_amd64.tar.gz -C /usr/local/
cd /usr/local/
mv frp_0.29.0_linux_amd64 frp
cd frp
#在服务端删除frpc和frpc.ini两个文件
rm -f frpc frpc.ini
#在服务端删除frps和frps.ini两个文件
rm -f frps frps.ini
二、配置文件
1、客户端修改frps.ini文件
#添加内容如下所示
[common]
bind_addr = 0.0.0.0
bind_port = 10000
bind_udp_port = 10001
vhost_http_port = 10003
vhost_https_port = 443
#kcp_bind_port = 10000
token = Abc#123&2wsx #和客户端token一致辞
authentication_timeout = 900
max_pool_count = 20
##日志记录
log_file = /var/log/frps.log
log_level = info