frps.ini 配置
[common]
bind_port = 7000
vhost_http_port = 38082
frpc.ini配置
[common]
server_addr = 公网服务器IP
server_port = 7000
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
[web]
type = http
local_port = 8082
custom_domains = 公网服务器IP
frp后台启动
nohup ./frps -c frps.ini > frps.log &
nohup ./frpc -c frpc.ini > frpc.log &
frp停止
ps -aux|grep frp| grep -v grep
kill -9 进程号