开发中...
管理控制台 账号中心
快速注册 登录
返回顶部

frp内网穿透一键安装指令

2024-04-14 14:27

大家可去看看,以下为摘取的关键命令,方便新手朋友复制安装!

脚本适用于安装平台:CentOS、Debian、Ubuntu~

FRP服务端一键安装脚本:

XML
  1. wget --no-check-certificate https://raw.githubusercontent.com/clangcn/onekey-install-shell/master/frps/install-frps.sh -O ./install-frps.sh
  2. chmod 700 ./install-frps.sh
  3. ./install-frps.sh install

常用命令

HTML
  1. 卸载命令:
  2. ./install-frps.sh uninstall
  3.  
  4. 更新FRP命令:
  5. ./install-frps.sh update
  6.  
  7. 开启FRP
  8. frps start
  9.  
  10. 停止FRP:
  11. Frps stop
  12.  
  13. 重启FRP
  14. frps restart
 运行 复制 文本

客户端FRPC配置文本:

使用时请删除中文注释
XML
  1. [common]
  2. server_addr = nas.frpxx.com
  3. server_port = 7000 # 服务器提供的端口号
  4. token = dgegiiVu # 服务器提供的token
  5.  
  6. [web1_xxxxx] # 为避免错误,一定需更改为比较特殊的名称,不能和服务器端其他配置重名.或者默认xxxxxx
  7. type = http # http协议
  8. local_ip = 192.168.1.5 # 填写群晖内网IP.
  9. local_port = 5000 # 群晖内网HTTP端口,默认为5000.
  10. custom_domains = nas.ioiox.com # 填写你解析到服务器的域名
  11.  
  12. [web2_xxxxxx] # 为避免错误,一定需更改为比较特殊的名称,不能和服务器端其他配置重名.
  13. type = https # https协议
  14. local_ip = 192.168.1.5 # 填写群晖内网IP.
  15. local_port = 5001 # 群晖内网HTTPS端口,默认为5001.
  16. custom_domains = nas.frpsxx.com # 填写你解析到服务器的域名
 复制 文本

启动Windows客户端

https://github.com/fatedier/frp/releases/download/v0.38.0/frp_0.38.0_windows_amd64.zip

CD到frp目录下执行以下命令
XML
  1. frpc.exe -c ./frpc.ini
立即注册