1、下载frp客户端:
http://qncdn.12nm.cn/file/202212172352459.zip
2、导入ini配置文件到程序目录,如下示例
[common]
server_addr = 服务器IP
server_port = 7000
token = 密钥
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 5600
[page80]
type = tcp
local_ip = 127.0.0.1
local_port = 80
remote_port = 5680
[yuancheng]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 5689
[xiaofeiji]
type = tcp
local_ip = 127.0.0.1
local_port = 8080
remote_port = 5681
[baota]
type = http
local_ip = 127.0.0.1
local_port = 8888
remote_port = 5688
custom_domains = http需要提供域名
[mysql]
type = tcp
local_ip = 127.0.0.1
local_port = 3306
remote_port = 5606
[redis]
type = tcp
local_ip = 127.0.0.1
local_port = 6379
remote_port = 5679
3、cd 安装目录,然后运行客户端程序
./frpc.exe -c ./frpc.ini
暂无评论