layout: post cid: 24 title: Linux Frps服务端一键配置脚本 slug: 24 date: 2019/04/10 10:05:00 updated: 2019/10/18 21:31:07 status: publish author: Alex categories:
- 实用脚本 tags:
- frps
- 端口
- 域名 customSummary: noThumbInfoStyle: default outdatedNotice: no reprint: standard thumb: thumbChoice: default thumbSmall: thumbStyle: default ---
Frps服务端一键配置脚本,最新版本:0.29.0
Frp 是一个高性能的反向代理应用,可以帮助您轻松地进行内网穿透,对外网提供服务,支持 tcp, http, https 等协议类型,并且 web 服务支持根据域名进行路由转发。
- 详情:fatedier ( https://github.com/fatedier/frp )
- 此脚本原作者:clangcn ( https://github.com/clangcn/onekey-install-shell )
Frps-Onekey-Install-Shell
Install(安装)
Github
wget https://raw.githubusercontent.com/QCEnjoyLL/frp-onekey/master/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install
Aliyun
wget https://code.aliyun.com/Nerocats/frps-onekey/raw/master/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install
Uninstall(卸载)
./install-frps.sh uninstall
Update(更新)
./install-frps.sh update
Server management(服务管理器)
Usage: /etc/init.d/frps {start|stop|restart|status|config|version}
简单的配置介绍
+------------------------------------------------------------+
| frps for Linux Server, Author Clang ,Mender QCEnjoyLL |
| A tool to auto-compile & install frps on Linux |
+------------------------------------------------------------+
Please select frps download url:
[1].aliyun
[2].github (default)
Enter your choice (1, 2 or exit. default [github]): #下载源 国内阿里,国外GitHub
-----------------------------------
Your select: github
-----------------------------------
Loading network version for frps, please wait...
frps Latest release file frp_0.29.0_linux_amd64.tar.gz
Loading You Server IP, please wait...
You Server IP:xxx.xxx.xxx.xxx
————————————————————————————————————————————
Please input your server setting:
————————————————————————————————————————————
Please input frps bind_port [1-65535](Default Server Port: 5443):#连接端口
frps bind_port: 5443
Please input frps vhost_http_port [1-65535](Default : 80):#默认HTTP端口
frps vhost_http_port: 80
Please input frps vhost_https_port [1-65535](Default : 443):#默认HTTPS端口
frps vhost_https_port: 443
Please input frps dashboard_port [1-65535](Default : 6443):#网页管理端口
frps dashboard_port: 6443
Please input frps dashboard_user(Default : admin):#网页管理用户名
frps dashboard_user: admin
Please input frps dashboard_pwd(Default : lzwosVoC):#网页管理密码
frps dashboard_pwd: lzwosVoC
Please input frps token(Default : QR9RhnCpyTbIQIYw):#连接密码
frps token: QR9RhnCpyTbIQIYw
Please input frps subdomain_host(Default : 96.44.136.51):#用于连接的域名,默认设置ip地址
frps subdomain_host: 96.44.136.51
Please input frps max_pool_count [1-200](Default : 50):#单个用户最大连接数,默认50
frps max_pool_count: 50
#以下信息按需修改,不懂直接默认即可
Please select log_level
1: info (default)
2: warn
3: error
4: debug
-------------------------
Enter your choice (1, 2, 3, 4 or exit. default [1]):
log_level: info
Please input frps log_max_days [1-30]
(Default : 3 day):
frps log_max_days: 3
Please select log_file
1: enable (default)
2: disable
-------------------------
Enter your choice (1, 2 or exit. default [1]):
log_file: enable
Please select tcp_mux
1: enable (default)
2: disable
-------------------------
Enter your choice (1, 2 or exit. default [1]):
tcp_mux: true
Please select kcp support
1: enable (default)
2: disable
-------------------------
Enter your choice (1, 2 or exit. default [1]):
kcp support: true
============== Check your input ==============
You Server IP : xxx.xxx.xxx.xxx
Bind port : 5443
kcp support : true
vhost http port : 80
vhost https port : 443
Dashboard port : 1228
Dashboard user : admin
Dashboard password : lzwosVoC
token : QR9RhnCpyTbIQIYw
subdomain_host : xxx.xxx.xxx.xxx
tcp_mux : true
Max Pool count : 50
Log level : info
Log max days : 3
Log file : enable
==============================================
Press any key to start...or Press Ctrl+c to cancel
#任意键安装,Ctrl+c取消
Windows上搭建看这里。