Centos7 speed is too slow, how to speed?

Centos7 use the browser to open Web page speed is too slow, open the blog Home Park, need 6-7 to finish wonderful show most of the content, it can not stand. After all, the average person to open a Web page open time of less than 3 wonderful patience in BBR speed up the internet to see, is a little, the effect is obvious, configuration, on page opening speed significantly improved, accelerated to within an acceptable range, the page will not open even stare at a blank page in a daze.

BBR is Google proposed a new congestion control algorithms, the Linux server can significantly improve throughput and reduce latency TCP connection.

Open BBR requires 4.10 or later of the Linux kernel, use the following command to view the current kernel version:

uname -r

Add update source

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

Sudo rpm Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

sudo yum --enablerepo=elrepo-kernel install kernel-ml -y

rpm -qa | grep kernel # to see if there are similar kernel-ml-4.11.0-1.el7.elrepo.x86_64 and the like, there is illustrated a success

sudo egrep ^ menuentry /etc/grub2.cfg | cut -f 2 -d \ '# look like is kernel-ml-4.11.0-1.el7.elrepo.x86_64 like in which line, the first acts of 0 The second line 1 .. . When you upgrade to 5.4.12 behind me, suggesting that the file does not exist. /Etc/grub2-efi.cfg file can be modified directly. The other cores can be commented out

sudo grub2-set-default 1 # 1 is the line number where the content above

reboot # reboot the server, the new kernel

uname -r # display more than just the normal version 4.10

 

Reference Links: https://laod.cn/black-technology/centos7-google-bbr-vps.html

Guess you like

Origin www.cnblogs.com/biaopei/p/12209923.html