Speed ​​up the VPS server and optimize the network for free: BBR, one-click installation

888u

Last update at :2024-05-18,Edit by888u

Let me introduce to you bbr [TCP BBR congestion control algorithm], a work produced by Google. bbr has been added to the 4.1 kernel of Linux, which means it comes with the kernel upgrade. Sometimes when a VPS or a server has a poor network, our general idea is to speed up or optimize the network. Currently, many acceleration methods are objectionable to VPS merchants or server providers, because most of them will cause bandwidth problems. unfair abuse, BBR has a greater advantage here.

Is it difficult to install bbr? Let’s try one-click installation. Here we recommend teddysun’s bbr one-click installation script. This bbr installation script is suitable for XEN\KVM\VMWARE, etc. in addition to OpenVZ virtualization. It can also be used on independent servers; supported systems include: CentOS 6+, Debian 7+, Ubuntu 12 +

Log in as root user and run the following command:

wget –no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh

chmod +x bbr.sh ./bbr.sh

After the automatic installation is completed: the script will prompt that you need to restart the VPS. Enter y and press Enter to restart.

After the restart is complete, enter the VPS to verify whether the latest kernel is successfully installed and TCP BBR is enabled. Enter the following command:

uname -r

Check the kernel version, if it contains 4.10 it means OK

sysctl net.ipv4.tcp_available_congestion_control

The return value is generally:

net.ipv4.tcp_available_congestion_control = bbr cubic reno

sysctl net.ipv4.tcp_congestion_control

The return value is generally:

net.ipv4.tcp_congestion_control = bbr

sysctl net.core.default_qdisc

The return value is generally:

net.core.default_qdisc = fq

lsmod | grep bbr

The return value of the tcp_bbr module means that bbr has been started.

Kernel upgrade method

If it is a CentOS system, execute the following command to upgrade the kernel:

yum –enablerepo=elrepo-kernel -y install kernel-ml kernel-ml-devel

For CentOS 6, execute the command:

sed -i ‘s/^default=.*/default=0/g’ /boot/grub/grub.conf

For CentOS 7, execute the command:

grub2-set-default 0

If it is a Debian/Ubuntu system, you need to manually download the latest version of the kernel to install the upgrade.

Go here to download the latest version of the kernel deb installation package.

If the system is 64-bit, download the amd64 linux-image that contains the generic deb package;

If the system is 32-bit, the linux-image downloaded from i386 contains the generic deb package;

The installation command is as follows (taking the latest version of 64-bit 4.9.3 as an example, please replace it with the downloaded deb package):

dpkg -i linux-image-4.9.3-040903-generic_4.9.3-040903.201701120631_amd64.deb

After the installation is complete, execute the command:

/usr/sbin/update-grub

Finally, just restart the VPS.

Recommended site searches: free foreign servers, domain name query network, domain name query, foreign host shopping guide, how much does it cost to rent a server for a year, asp free space application, reverse IP check, domain name registration service website, IP query, free hosting ,

Speed ​​up the VPS server and optimize the network for free: BBR, one-click installation

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码