How to install BBRPLUS on VPS running CentOS 7

First of all, you have a terminal to connect to your server with SSH.

From a Linux PC or a Mac, you can directly connect to your server with login credentials you have received from us via SSH with a terminal.

On a PC with Windows OS, you can download putty to proceed.

On Android mobile devices,you can have Termius installed to connect to your server. Please download it from app stores.

Installation of BBRPLUS

1. Log in your VPS

$ ssh root@IPv4 address

2. Install BBRPLUS on your server

  • KVM VPS (CentOS 7):one key script

link to the solution provider

$ wget "https://github.com/cx9208/bbrplus/raw/master/ok_bbrplus_centos.sh" && chmod +x ok_bbrplus_centos.sh && ./ok_bbrplus_centos.sh 

  • XEN VPS:installation and configuration step by step

The one-key-script above does not work on XEN VPS we provide, because the lighter XEN VPS (PV type) does not allow the configuration of grub2 on CentOS 7.

We recommend you to use the step-by-step guide below to complete the installation of a Linux kernel that has BBRPLUS enabled.

Step 1. download kernel 4.14.129-bbrplus

$ wget "https://github.com/cx9208/bbrplus/raw/master/ok_bbrplus_centos.sh; 

$ chmod +x ok_bbrplus_centos.sh

Step 2:edit script you have just downloaded: ok_bbrplus_centos.sh. Please remove everything after the following two lines in the script, then run the script.

$ echo -e "安装内核..."

$ yum install -y kernel-${kernel_version}.rpm

You may consider keeping the line below because you can clean up the source file of the kernel when everything is completed.

$ rm -f kernel-${kernel_version}.rpm

Then, run the script.

$ ./ok_bbrplus_centos.sh

Step 3: edit /etc/grub.conf,comment everything related to the old kernel, and enable BBRPLUS

i) Below is how /etc/grub.confshould look like after editing: 

default=1

timeout=5

title CentOS Linux (4.14.129-bbrplus) 7 (Core)

root (hd0,0)

kernel /boot/vmlinuz-4.14.129-bbrplus console=hvc0 xencons=tty0 root=/dev/xvda1 ro LANG=en_US.UTF-8

initrd /boot/initramfs-4.14.129-bbrplus.img

#title CentOS Linux (3.10.0-514.16.1.el7.x86_64) 7 (Core)

# root (hd0,0)

# kernel /boot/vmlinuz-3.10.0-514.16.1.el7.x86_64 console=hvc0 xencons=tty0 root=/dev/xvda1 ro

# initrd /boot/initramfs-3.10.0-514.16.1.el7.x86_64.img

ii) enable BBRPLUS:

$ echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf 

$ echo "net.ipv4.tcp_congestion_control=bbrplus" >> /etc/sysctl.conf

Step 4: reboot the system, and check if you have successfully completed the installation of the new kernel, and enabled the BBRPLUS.

$ uname -r 

If you see “4.14.129-bbrplus”, the right kernel has been installed successfully

$ lsmod | grep bbr 

if you see “tcp_bbrplus”, then BBRPLUS has been enabled successfully

Both the two methods described above have been tested on our KVM/XEN VPS/CentOS7. If you encounter any problem, please contact us on WeChat: HostSailorContct

  • 1 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Artículos Relacionados

How To Install and Use Docker on Ubuntu 16.04

Introduction Docker is an application that makes it simple and easy to run application processes...

Change Main IP of the server :: Vesta Panel

If we are changing the main IP of a server installed with Vesta panel, we can use the following...

cPanel: Apache-FastCGI Data Timeout Error

If you are using a cPanel server and have FastCGI enabled in Apache, you might be facing the...

Domainkey installer in cPanel

You can use the following cPanel script to install domainkey for an account...

Email issues :: Common Troubleshooting Steps

Here I will discuss some common errors and their solution: We are using a mail relay setup for...