#服务端安装
wget --no-check-certificate https://raw.githubusercontent.com/clangcn/onekey-install-shell/master/frps/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install
#卸载
./install-frps.sh uninstall
#管理
/etc/init.d/frps start
/etc/init.d/frps stop
/etc/init.d/frps restart
/etc/init.d/frps status
/etc/init.d/frps config
/etc/init.d/frps version
#客户端配置文件示例
[common]
server_addr = IP地址
server_port = 服务端口
token = 密码
tcp_mux = true
protocol = tcp
login_fail_exit = false
user = zkx
[zkxblog.com.http]
type = http
local_ip = 10.10.10.13
local_port = 80
remote_port = 80
custom_domains = zkxblog.com
use_compression = true
use_encryption = true
[*.zkxblog.com.http]
type = http
local_ip = 10.10.10.13
local_port = 80
remote_port = 80
custom_domains = *.zkxblog.com
use_compression = true
use_encryption = true
[zkxblog.com.https]
type = https
local_ip = 10.10.10.13
local_port = 443
remote_port = 443
custom_domains = zkxblog.com
use_compression = true
use_encryption = true
[*.zkxblog.com.https]
type = https
local_ip = 10.10.10.13
local_port = 443
remote_port = 443
custom_domains = *.zkxblog.com
use_compression = true
use_encryption = true
[53389]
type = tcp
local_ip = 10.10.10.14
local_port = 3389
remote_port = 53389
use_encryption = true
use_compression = true

引用:
http://koolshare.cn/thread-65379-1-1.html