1.linux - frp安装部署
frp服务端免费下载
https://pan.baidu.com/s/1QoXNT7I14bU_qsW5GCfW_w?pwd=22av
提取码: 22av
上传至服务器
解压
tar -zxvf frp_0.37.1_linux_amd64.tar.gz
删除客户端配置文件
rm -f frpc frpc_full.ini frpc.ini
编辑配置文件
vi frps.ini
启动服务端
nohup ./frps -c ./frps.ini &
2. windows - frp安装部署
frp客户端免费下载
https://pan.baidu.com/s/11OV3Ek-fEl46XPXPJBf1Tg?pwd=w26e
提取码: w26e
解压
删除服务端配置文件
编辑配置文件
[common] # 公共配置信息
server_addr = 8.134.xx.xxx # 公网ip或域名
server_port = 7000 # 连接frp服务端时的端口,跟前面服务端bind_port对应
[ssh1] # 远程桌面时用
type = tcp
local_ip = 127.0.0.1 # 本地ip
local_port = 22 # 本地端口
remote_port = 6000 # ssh连接时的端口, 例如远程连接 xxx.xxx.xxx:6000
[web] # web名字可以任意
type = http # 指定http协议
local_port = 8080 # 本地项目端口
custom_domains = 001.chenxxxx.com # 访问本地项目的公网域名或ip, 例如http://xxx.xxx.xxx:8080, 8080和上面服务端vhost_http_port对应
启动客户端
3.内网穿透成功
测试