下雨啦

图片
 开完会。 狂风暴雨⛈️ 还好顺利到家。 和JM谈好了。 明天签合同。 去了厂里,买了组刀片,切5mm的。 失去了往日的生机。 哎,一切慢慢来吧。 难难难

网站随笔



=========================

配置环境



=加速bbr命令:

 wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh


我的blog用的是这个
wget -N --no-check-certificate "https://gist.github.com/zeruns/a0ec603f20d1b86de6a774a8ba27588f/raw/4f9957ae23f5efb2bb7c57a198ae2cffebfb1c56/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
然后命令 reboot

3.安装成功,重启VPS之后我们重新连接服务器。输入下列指令来启用其BBR plus。

./tcp.sh

第三步:验证bbr是否已经开启

1、输入

sysctl net.ipv4.tcp_available_congestion_control

如果返回
net.ipv4.tcp_available_congestion_control = reno cubic bbr
则安装 成功


2、输入

lsmod | grep bbr

如果返回

tcp_bbr 20480 2

则安装成功

============

Google BBR 是一款免费开源的TCP拥塞控制传输控制协议, 可以使 Linux 服务器显著提高吞吐量和减少 TCP 连接的延迟。 项目地址:https://github.com/google/bbr

CentOS开启BBR

第一步:

1、yum系统更新

yum update

2、查看系统版本

cat /etc/redhat-release

输出如下则表示已升级到7.6

CentOS Linux release 7.6.1810 (Core)

3、安装elrepo并升级内核

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

centos 8

yum install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm

centos 7

yum install https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm
yum --enablerepo=elrepo-kernel install kernel-ml -y

4、安装完成后使用下面命令查看当前已安装的内核

awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg

返回

0 : CentOS Linux (4.19.0-1.el7.elrepo.x86_64) 7 (Core)

1 : CentOS Linux 7 Rescue ee7953a3b5944053a26f29daf8c71e2f (3.10.0-862.14.4.el7.x86_64)

2 : CentOS Linux (3.10.0-862.14.4.el7.x86_64) 7 (Core)

3 : CentOS Linux (3.10.0-862.3.2.el7.x86_64) 7 (Core)

4 : CentOS Linux (3.10.0-862.el7.x86_64) 7 (Core)

5 : CentOS Linux (0-rescue-4bbda2095d924b72b05507b68bd509f0) 7 (Core)

5、把CentOS Linux (4.19.0-1.el7.elrepo.x86_64) 7 (Core)内核设置为默认

grub2-set-default 0

6、重启服务器

reboot

第二步:设置BBR

1、编辑配置文件

vi /etc/sysctl.conf

2、添加如下内容

net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr

3、加载系统参数(正常情况下会输出我们之前加入的内容)

sysctl -p

第三步:验证bbr是否已经开启

1、输入

sysctl net.ipv4.tcp_available_congestion_control

如果返回
net.ipv4.tcp_available_congestion_control = reno cubic bbr
则安装 成功

2、输入

lsmod | grep bbr

如果返回

tcp_bbr 20480 2

则安装成功



========================================================

一键安装wireguard vpn

curl -O https://raw.githubusercontent.com/atrandys/wireguard/master/wg_mult.sh && chmod +x wg_mult.sh && ./wg_mult.sh

Curl: Command Not Found错误解决方法




apt-get update -y && apt-get install curl -y
==================


评论

此博客中的热门博文

wordpress 安装常见问题