赞
踩
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
如果提示curl: command not found,先复制下面的代码安装curl,再执行上面的脚本。
yum install curl -y
遇到这里输入“y”,然后回车
这里则是输入用户名
这里输入密码
这里则是设置端口
这样就是安装完成了
浏览器地址栏输入你的IP后加端口就可以访问x-ui了
使用root用户登录,运行以下命令:
wget --no-check-certificate -O /opt/bbr.sh https://github.com/teddysun/across/raw/master/bbr.sh
chmod 755 /opt/bbr.sh
/opt/bbr.sh
安装完成后,脚本会提示需要重启 VPS,输入 y 并回车后重启。
重启完成后,进入 VPS,验证一下是否成功安装最新内核并开启 TCP BBR,输入以下检查:
No.1
uname -r
查看内核版本,显示为新版内核就表示 OK 了。
No.2
sysctl net.ipv4.tcp_available_congestion_control
返回值一般为:
net.ipv4.tcp_available_congestion_control = bbr cubic reno
或者:
net.ipv4.tcp_available_congestion_control = reno cubic bbr
No.3
sysctl net.ipv4.tcp_congestion_control
返回值一般为:
net.ipv4.tcp_congestion_control = bbr
No.4
sysctl net.core.default_qdisc
返回值一般为:
net.core.default_qdisc = fq
No.5
lsmod | grep bbr
返回值有 tcp_bbr 模块即说明 bbr 已启动。比如:
tcp_bbr 20480 3
注意:并不是所有的 VPS 都会有此返回值,若没有也属正常。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。