官网
1. 安装CentOS 7 64bit mini
2. 更新&安装wget
yum -y update
yum -y install wget
3. 安装frps
cd /tmp
wget --no-check-certificate https://raw.githubusercontent.com/clangcn/onekey-install-shell/master/frps/install-frps.sh -O ./install-frps.sh
chmod 777 install-frps.sh
./install-frps.sh install
4. 添加二级域名
frps config
添加
subdomain_host = your_domain
5.重启frps
frps restart
6.打开端口
打开安装过程中选择的端口(vhost_http_port,vhost_https_port,bind_port,dashboard_port)
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=443/tcp --permanent
firewall-cmd --zone=publ