查看完整版本: [-- FRP服务端一键安装和客户端设置教程(一) --]

-> ◆ 数码技巧 ◆ -> FRP服务端一键安装和客户端设置教程(一) [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

海豚 2020-03-30 10:53

FRP服务端一键安装和客户端设置教程(一)

  FRP出来的时间也比较长了,之前没怎么用,现在因为需要接触了下,做个记录。

FRP服务端一键安装脚本//目前安装的这个版本是0.29.0



wget https://raw.githubusercontent.com/MvsCode/frp-onekey/master/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install



安装过程中会让你手动选择一些参数




Please input frps bind_port [1-65535](Default Server Port: 5443):
#输入frp提供服务的端口,用于服务器端和客户端通信,按Enter键表示默认5443,否则手动输入新端口

Please input frps dashboard_port [1-65535](Default dashboard_port: 6443):
#输入frp的控制台服务端口,用于查看frp工作状态,按Enter键表示默认6443,否则手动输入新端口

Please input frps vhost_http_port [1-65535](Default vhost_http_port: 80):
#输入frp进行http穿透的http服务端口,按Enter键表示默认80,否则手动输入新端口,一般不建议默认80

Please input frps vhost_https_port [1-65535](Default vhost_https_port: 443):
#输入frp进行https穿透的https服务端口,按Enter键表示默认443,否则手动输入新端口

Please input privilege_token (Default: WEWLRgwRjIJVPx2kuqzkGnvuftPLQniq):
#输入frp服务器和客户端通信的密码,默认是随机生成的,按Enter键表示按默认来,否则手动输入。frpc客户端需要这个接头暗号

Please input frps max_pool_count [1-200](Default max_pool_count: 50):
#设置每个代理可以创建的连接池上限,默认50

Please select log_level #####
    1: info
    2: warn
    3: error
    4: debug
#####################################################
Enter your choice (1, 2, 3, 4 or exit. default [1]):
#设置日志等级,4个选项,默认是info

Please input frps log_max_days [1-30]
    (Default log_max_days: 3 day):
#设置日志保留天数,范围是1到30天,默认保留3天。

##### Please select log_file #####
    1: enable
    2: disable
#####################################################
    Enter your choice (1, 2 or exit. default [1]):
#设置是否开启日志记录,默认开启,开启后日志等级及保留天数生效,否则等级和保留天数无效






安装完成后会给出一些信息,建议保存在记事本上后面需要用到。




Congratulations, frps install completed!
==============================================
You Server IP      : 192.2x.x.x
Bind port          : 5443
KCP support        : true
vhost http port    : 80
vhost https port   : 443
Dashboard port     : 6443
token              : FvHqtRfxxxxxxxxx
tcp_mux            : true
Max Pool count     : 180
Log level          : info
Log max days       : 30
Log file           : enable
==============================================
frps Dashboard     : http:// 192.2x.x.x:6443/
Dashboard user     : zmrbk.com
Dashboard password : zmrbk.com
==============================================

frps status manage :frps {start|stop|restart|status|config|version}





注意,如果安装完成后打不开面板请注意看下是不是防火墙没有放行相关端口如5443、6443等。

到此,frp的服务端就安装完成了。

试运行一下

/usr/local/frps/frps  -c /usr/local/frps/frps.ini

服务管理

/etc/init.d/frps {start|stop|restart|status|config|version}

文件安装目录在 /usr/local/frps/

配置文件目录在 /usr/local/frps/frps.ini

配置 FRP 服务端
./install-frps.sh config
更新 FRP 服务端
./install-frps.sh update
卸载 FRP 服务端
./install-frps.sh uninstall





via:https://www.zmrbk.com/zmr/nnqy

https://github.com/MvsCode/frp-onekey

海豚 2020-03-30 11:01
word版
[attachment=7972]


查看完整版本: [-- FRP服务端一键安装和客户端设置教程(一) --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Time 0.026665 second(s),query:5 Gzip enabled