wget https://code.aliyun.com/MvsCode/frps-onekey/raw/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,否则手动输入新端口
Please
input frps vhost
_https_
port
[
1
-
65535
](
Default
vhost_https_port
:
443
):
#输入frp进行https穿透的https服务端口,按Enter键表示默认443,否则手动输入新端口
Please
input privilege_token
(
Default
:
xxxxxxxxx
):
#输入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
]):
#设置是否开启日志记录,默认开启,开启后日志等级及保留天数生效,否则等级和保留天数无效
安装完成后会给出一些信息,建议复制出来保存在记事本上,配置FRPC需要用到。
Congratulations
,
frps
install
completed
!
==============================================
You
Server
IP
:
x
.x
.
x
.
x
Bind
port
:
5443
KCP support
:
true
vhost
http
port
:
80
vhost https port
:
443
Dashboard
port
:
6443
token
:
xxxxxxxxx
tcp_mux
:
true
Max
Pool
count
:
50
Log
level
:
info
Log
max
days
:
30
Log
file
:
enable
==============================================
frps
Dashboard
:
http
://x
.x
.
x
.
x
:
6443
/
Dashboard
user
:
admin
Dashboard
password
:
xxxxxxxx
==============================================
frps
status
manage :frps {
start
|
stop
|restart|
status
|config|
version
}
注意,如果安装完成后,上面这个链接打不开的,请注意检查一下服务器的防火墙是不是没有放行端口,比如:5443、6443、80、443等。
到此,frp的服务端就安装完成了。
常用功能命令:
运行程序: /etc/init.d/frps start
停止程序: /etc/init.d/frps stop
重启程序: /etc/init.d/frps restart
运行状态: /etc/init.d/frps status
配置程序: /etc/init.d/frps config
程序版本: /etc/init.d/frps version
更新命令:./install-frps.sh update
卸载命令:./install-frps.sh uninstall
原文地址:https://wp.gxnas.com/160.html
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
- 最新
- 最热
只看作者