frp内网穿透一键安装指令
2024-04-14 14:27
大家可去看看,以下为摘取的关键命令,方便新手朋友复制安装!
脚本适用于安装平台:CentOS、Debian、Ubuntu~
FRP服务端一键安装脚本:
XML
- 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
常用命令
HTML
- 卸载命令:
- ./install-frps.sh uninstall
- 更新FRP命令:
- ./install-frps.sh update
- 开启FRP
- frps start
- 停止FRP:
- Frps stop
- 重启FRP
- frps restart
客户端FRPC配置文本:
使用时请删除中文注释
XML
- [common]
- server_addr = nas.frpxx.com
- server_port = 7000 # 服务器提供的端口号
- token = dgegiiVu # 服务器提供的token
- [web1_xxxxx] # 为避免错误,一定需更改为比较特殊的名称,不能和服务器端其他配置重名.或者默认xxxxxx
- type = http # http协议
- local_ip = 192.168.1.5 # 填写群晖内网IP.
- local_port = 5000 # 群晖内网HTTP端口,默认为5000.
- custom_domains = nas.ioiox.com # 填写你解析到服务器的域名
- [web2_xxxxxx] # 为避免错误,一定需更改为比较特殊的名称,不能和服务器端其他配置重名.
- type = https # https协议
- local_ip = 192.168.1.5 # 填写群晖内网IP.
- local_port = 5001 # 群晖内网HTTPS端口,默认为5001.
- 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
- frpc.exe -c ./frpc.ini