--------------------------------------------------------------------------
1、后台运行frp服务 服务端: nohup ./frps -c frps.ini >/dev/null 2>&1 & 客户端: nohup ./frpc -c frpc.ini >/dev/null 2>&1 & 说明:>/dev/null 2>&1 &,表示丢弃。 https://blog.csdn.net/woaiyaou/article/details/83359799
https://github.com/fatedier/frp
frps
[common]
server_addr = 0.0.0.0
bind_port = 7000
dashboard_port = 7500
vhost_http_port = 80
auth_token = meiyoumima
dashboard_user = shabake
dashboard_pwd = adsl2100e
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 6801
./frps -c ./frps.ini #服务端启动
----------------------------------------------
frpc
[common]
server_addr = your ip地址
server_port = 7000
auth_token = meiyoumima
[ssh]
type = tcp
local_port = 22
remote_port = 6801
use_encryption = true
[web01]
type = http
local_ip = 127.0.0.1
local_port = 80
custom_domains = domain.com
./frpc -c ./frpc.ini #客户端启动
重启命令
ps -e |grep frps 找到pid号
用kill杀掉,再重新启动
----------------------------------------------
frps_full 和 frpc_fulll里面有详细参数配置
如果里面没有的参数就说明不支持
来源:https://www.cnblogs.com/shabake/p/9014177.html