1.下载并执行脚本
wget https://gist.github.com/lawrenceching/41244a182307940cc15b45e3c4997346
chmod +x install-frp-as-systemd-service.sh(如果上一步脚本中需要的包没下载下来,就配置代理。服务器没法配置代理的,就客户端配置代理,手动下载后修改脚本)
./install-frp-as-systemd-service.sh运行安装
安装后配置开机自启动:
systemctl enable frps
启动服务
systemctl start frps
查看监听端口
cat /etc/frp/frps.toml中的listen,然后将这个端口在防火墙开放
剩下的配置客户端,然后根据各自需求在服务端开放端口即可。