首先感谢原作者以及一键脚本作者的成果,附上相关原始页面,大家可去看看,以下为摘取的关键命令,方便新手朋友复制安装!

FRP原作者页面:https://github.com/fatedier/frp
KoolShare-FRP一键脚本:https://github.com/clangcn/onekey-install-shell

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

FRP服务端一键安装脚本:

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

卸载命令:

./install-frps.sh uninstall

更新FRP命令:
./install-frps.sh update

FRP常用命令:
开启FRP
frps start

停止FRP:
Frps stop

重启FRP
frps restart

客户端FRPC配置文本:

[common]

server_addr = nas.frpxx.com # 服务器IP或者地址

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 # 填写你解析到服务器的域名

最后修改:2023 年 06 月 17 日
如果觉得我的文章对你有用,请随意赞赏