kimsufi下centos7更换内核安装BBR操作记录
|
![]() |
![]() |
![]() |
| 【性价之王】 | 【线路之王】 | 【价格之王】 | 【配置之王】 |
| 【免费之王】 | 【香港首推】 | 【梯子之王】 | 【独服之王】 |
买了个二手kimsufi的ks7发现速度不理想,想着使用BBR来加速一下.翻了好多百度记录,只有这个成功.当然也有朋友喜欢使用一键包.
1、yum系统更新
yum -y update2、查看系统版本
cat /etc/redhat-release输出如下则表示已升级到7.7
CentOS Linux release 7.7.1908 (Core)3、安装elrepo并升级内核(命令是一条一条输入的)
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.orgrpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpmyum --enablerepo=elrepo-kernel install kernel-ml -y正常情况下将输出如下信息:
[root@ns3026884 ~]# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org[root@ns3026884 ~]# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpmRetrieving http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpmRetrieving http://elrepo.org/elrepo-release-7.0-4.el7.elrepo.noarch.rpmPreparing... ################################# [100%]Updating / installing... 1:elrepo-release-7.0-4.el7.elrepo ################################# [100%][root@ns3026884 ~]# yum --enablerepo=elrepo-kernel install kernel-ml -yLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * elrepo: mirrors.coreix.net * elrepo-kernel: mirrors.coreix.netelrepo | 2.9 kB 00:00:00 elrepo-kernel | 2.9 kB 00:00:00 (1/2): elrepo/primary_db | 467 kB 00:00:00 (2/2): elrepo-kernel/primary_db | 1.9 MB 00:00:00 Resolving Dependencies--> Running transaction check---> Package kernel-ml.x86_64 0:5.6.7-1.el7.elrepo will be installed--> Processing Dependency: grubby >= 8.28-2 for package: kernel-ml-5.6.7-1.el7.elrepo.x86_64--> Processing Dependency: /usr/sbin/new-kernel-pkg for package: kernel-ml-5.6.7-1.el7.elrepo.x86_64--> Processing Dependency: /usr/sbin/new-kernel-pkg for package: kernel-ml-5.6.7-1.el7.elrepo.x86_64--> Running transaction check---> Package grubby.x86_64 0:8.28-26.el7 will be installed--> Finished Dependency ResolutionDependencies Resolved================================================================================================================================= Package Arch Version Repository Size=================================================================================================================================Installing: kernel-ml x86_64 5.6.7-1.el7.elrepo elrepo-kernel 49 MInstalling for dependencies: grubby x86_64 8.28-26.el7 base 71 kTransaction Summary=================================================================================================================================Install 1 Package (+1 Dependent package)Total download size: 49 MInstalled size: 222 MDownloading packages:(1/2): grubby-8.28-26.el7.x86_64.rpm | 71 kB 00:00:00 (2/2): kernel-ml-5.6.7-1.el7.elrepo.x86_64.rpm | 49 MB 00:00:04 ---------------------------------------------------------------------------------------------------------------------------------Total 10 MB/s | 49 MB 00:00:04 Running transaction checkRunning transaction testTransaction test succeededRunning transactionWarning: RPMDB altered outside of yum. Installing : grubby-8.28-26.el7.x86_64 1/2 Installing : kernel-ml-5.6.7-1.el7.elrepo.x86_64 2/2 Verifying : kernel-ml-5.6.7-1.el7.elrepo.x86_64 1/2 Verifying : grubby-8.28-26.el7.x86_64 2/2 Installed: kernel-ml.x86_64 0:5.6.7-1.el7.elrepo Dependency Installed: grubby.x86_64 0:8.28-26.el7 Complete!安装完成后使用下面命令查看当前已安装的内核:
awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg返回:
[root@ns3026884 ~]# awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg0 : CentOS Linux (5.6.7-1.el7.elrepo.x86_64) 7 (Core)1 : CentOS Linux (4.19-ovh-xxxx-std-ipv6-64) 7 (Core)把CentOS Linux (4.19.0-1.el7.elrepo.x86_64) 7 (Core)内核设置为默认:
[root@ns3026884 ~]# grub2-set-default 0重启:
reboot4、设置BBR
编辑(vi教程:https://www.runoob.com/linux/linux-vim.html)vi /etc/sysctl.conf添加如下内容net.core.default_qdisc = fqnet.ipv4.tcp_congestion_control = bbr退出vi,执行一下命令,加载系统参数(正常情况下会输出我们之前加入的内容)sysctl -p可以看到:
[root@ns3026884 ~]# sysctl -pnet.core.default_qdisc = fqnet.ipv4.tcp_congestion_control = bbr5、验证bbr是否已经开启
a. 如果
sysctl net.ipv4.tcp_available_congestion_control返回
net.ipv4.tcp_available_congestion_control = reno cubic bbr则成功!
b.如果
lsmod | grep bbr返回形如如下形式的信息即成功
tcp_bbr 20480 2附言:为了测试 BBR 的网络性能增强, 您可以在 Web 服务器目录中创建一个文件以供下载, 然后, 从台式计算机上的 Web 浏览器测试下载速度。
sudo dd if=/dev/zero of=500mb.zip bs=1024k count=500最后, 从桌面计算机上的 Web 浏览器访问http://ip/500mb.zip , 然后评估执行下载速度。
更多kimsufi信息请访问:https://woyard.com/kimsufi
[kimsufi]历史优惠活动内容
猜你可能想看的VPS
- Mineserver:香港CMI大带宽云服务器38元/月起(300M不限 香港VPS[主机]
- 加拿大以“国安”为由禁止华为、中兴参与5G建设 全球[VPS测评]
- 租用美国服务器有哪些安全方案 美国VPS[主机]
- 云服务器都是有哪些特点? 全球[VPS测评]
- 如何更改WHMCS默认后台路径让WHMCS系统更安全 全球[VPS测评]
- 性价比最高的VPS网络评测 全球[VPS测评]
- VPS成立BurjeelHoldings 全球[VPS测评]
- Rustrot-深绿色UI电商网站模板HTML5框架 全球[VPS测评]
- 跨境电商洋码头生死攸关:买手流失资金被冻结保全 全球[VPS测评]
- 恒创科技怎么样?香港美国云服务器/独服/高防全场2.5折起 美国VPS[主机]
- 桔子数据,香港安畅BGP大带宽VPS 首月五折体验 三网直连 14元/月 香港VPS[主机]
- CMCUCT:2核2GB/20GB香港ntt线路vps 6TB流量/1G 香港VPS[主机]
- 啤啤云怎么样?香港CN2线路vps,有香港安畅机房,全部9折,38.7元 香港VPS[主机]
- 岚云:香港安迅/沙田CN2直连,75折起,1核/1G/30G SSD/1 香港VPS[主机]
- DMIT:香港/洛杉矶GIA等KVM VPS,黑五DMIT优惠码活动,稳 香港VPS[主机]
- 百家云服务器怎么样?免备案香港云服务器、即开即用 香港VPS[主机]
- 麻花云双12活动:香港CN2云主机首月9元;安徽移动vps月付29元 香港VPS[主机]
- 极光KVM:新上香港CN2VPS,终身6折优惠,1核/1G/5Mbps, 香港VPS[主机]
- edgeNAT:2021元旦vps促销_全场韩国/美国/香港VPS低至7 韩国VPS[主机]
- 恒星云:香港沙田CN2VPS低至9.9元/起_国内BGP云服务器4核4G 香港VPS[主机]
- UCloud快杰型海外云主机:可选香港/上海/北京/日本/新加坡/韩国/ 日本VPS[主机]
- 欧路云:香港/加拿大/法国/新加坡vps全线产品8折优惠,适用于新购/续 香港VPS[主机]
- 触摸云:香港CN2 GIA云服务器,1核/1G/20G/10M,促销月付 香港VPS[主机]
- LiCloud:香港CN2线路云服务器,100Mbps大带宽,6折优惠中 香港VPS[主机]
- 什么是Bootstrap? 全球[VPS测评]
- 40火伞高压电爬坡更让企业用电于民 全球[VPS测评]
- “休闲养蜂”风靡海外跨境电商追逐垂直风口 全球[VPS测评]
- 跨境电商有哪些平台?十大跨境电商平台! 全球[VPS测评]
- 腾讯云香港轻量应用服务器 优惠活动最低月付仅24元 香港VPS[主机]
- 磐逸云怎么样?香港沙田cn2vps 带宽5M年付128元 香港VPS[主机]
转载请注明原文地址: http://140.238.13.167:12355/read-133424.html











