一键FRP服务

sudo apt-get install -f -y
sudo apt-get autoremove -y
sudo apt-get install aria2 git screen -y
aria2c -c -s 4 https://github.com/fatedier/frp/releases/download/v0.32.0/frp_0.32.0_linux_amd64.tar.gz
tar -zxvf frp_0.32.0_linux_amd64.tar.gz
mv frp_0.32.0_linux_amd64 frps
cd frps
echo -e "[common]
bind_addr = 0.0.0.0
bind_port = 7000
kcp_bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
authentication_timeout = 0
log_file = frps.log
token = frp.lucoder.com" > frpservice.ini
nohup ./frps -c frpservice.ini & 1=1
ps aux | grep frps

cd ..
rm -rf frp_0.32.0_linux_amd64.tar.gz

注意:

  1. 如果不是root账户,在运行上述脚本之前必须先运行sudo apt-get update,并输入超级管理员密码。
  2. 上述脚本默认监听80和443
  3. 版本自行修改
  4. 脚本仅适用于Debian系列系统
原文地址:https://www.cnblogs.com/muxuan/p/12490623.html