Last update at :2024-06-21,Edit by888u
In the past, we needed to use BBR to optimize and accelerate the server. Some merchants built it directly into the image, and some required us to install it ourselves. However, we needed to modify the system kernel during manual installation, so if it is used in a production environment Be careful when modifying, as it may cause the existing production environment to malfunction. Even if we need to install it, it is still installed initially on the server.
Tencent has launched the TCPA unilateral congestion algorithm, which is based on the RHEL7.4 source code. It has been announced on the official kernel team website and can be used for free. Recently, many netizens have published how to install TCPA. Netizens launched one-click package installation. In this article, Snail is going to demonstrate how to configure TCPA in CentOS7 system by referring to Tencent's official tutorial method.
Because of the possible problems that may arise in different systems, it is not recommended to install it in an existing production environment. It can be installed in the initial stage of system installation, and then deployed to the production environment after checking that there are no problems.
First, preparations
1. System demonstration
The system here uses CentOS7
2. Requirements documents
Customized kernel file: https://share.weiyun.com/5AeyuFg Password: d1swc1
TCPA installation package file: https://share.weiyun.com/5RAyh7c Password: qeetzp
Here are Tencent’s official documents. Reference: https://linux.qq.com/?p=238, here Snail also directly backs up a copy to its own resource library, which makes wget more convenient. Specific updates must be subject to Tencent.
3. Update sources and dependent libraries
yum update -y
yum install net-tools wget -y
Second, installation process
1. Replace the system kernel
wget https://soft.laozuo.org/tcpa/kernel-3.10.0-693.5.2.tcpa06.tl2.x86_64.rpm
rpm -ivh kernel-3.10.0-693.5.2.tcpa06.tl2.x86_64.rpm –force
Then we need to reboot the server.
2. Check whether the kernel has been replaced
uname -a
Then we check to see if there are tcpa characters in the kernel. If so, it means it is installed.
3. TCPA installation package installation
wget https://soft.laozuo.org/tcpa/tcpa_packets_180619_1151.tar.bz2
tar jxvf tcpa_packets_180619_1151.tar.bz2
cd tcpa_packets
sh install.sh
4. Start TCPA
cd /usr/local/storage/tcpav2
sh start.sh
We can use the lsmod|grep tcpa command to check whether it is started.
5. Custom port problem
By default, the three ports 80, 443, and 8080 will be enabled and accelerated. If we need to customize the port, we need to modify it in the start.sh file.
$BINDIR/$CTLAPP access add tip $ip tport 1234 (custom port)
We can add a line and specify the port as required.
Third, uninstall TCPA
cd /usr/local/storage/tcpav2sh uninstall.sh
If it is not needed, we can also uninstall it.
To summarize, the above is the process that Snail has experienced in replacing the kernel in CentOS7 and installing the TCPA unilateral congestion algorithm.
# One-click installation of TCPAwget http://down.08mb.com/tcp_opz/tcpa/tcpa.shsh tcpa.sh
Here we can also refer to the one-click installation method provided by the blogger at https://www.lijian.me/141.html. However, any process of modifying the kernel operation needs to be carried out when there is no important content in the server. Do not use it directly in the production environment.
Recommended site searches: network registration, virtual host application, how to check domain name registration number, multi-ip site group server, shopex virtual host, host discount code, permanent free space, cm domain name registration, how to register company domain name, Korean independent server ,
发表评论