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
- 极光KVM:4月G口新品发布美国大带宽vps;香港cn2+BGP直连云服 美国VPS[主机]
- 青云互联:香港荃湾云服务器限时七折,13元/月起;江苏挂机宝vps低至5 香港VPS[主机]
- 八成企业看好出海投资 防止“溺水”需重视这一点 全球[VPS测评]
- 吸血鬼崛起服务器怎么快速搭建? 全球[VPS测评]
- 香港云服务器的优势有哪些方面 香港VPS[主机]
- 创意IT服务公司主页网站模板 - Softets 全球[VPS测评]
- 游戏服务器是什么意思?游戏服务器可以用云服务器吗? 全球[VPS测评]
- CubeCloud,香港cn2,美国cn2 gia线路vps主机,2核1 美国VPS[主机]
- 金斗云怎么样?香港CN2月付23元,圣何塞CN2月付22元 香港VPS[主机]
- 麻花云怎么样?安徽移动VPS月付29元 香港VPS 2M月付21元 香港VPS[主机]
- 华纳云双十一钜惠活动:香港美国云服务器低至3.5折 美国VPS[主机]
- 麻花云双12活动:香港CN2云主机首月9元;安徽移动vps月付29元 香港VPS[主机]
- 腾讯云轻量应用服务器128元/年,香港免备案vps/30M大带宽/100 香港VPS[主机]
- 快云科技:香港CN2 GIA云服务器,全场7折终身优惠,带宽20M,20 香港VPS[主机]
- 酷锐云:香港安畅机房4H/4G/60G/20Mbps,45元/月;香港C 香港VPS[主机]
- 众创逸云:香港安畅CN2VPS全新上架,新用户首月5折优惠年付8折优惠( 香港VPS[主机]
- 啤啤云:美国圣何塞vps/香港安畅vps,GIA线路,全场9折终身优惠 美国VPS[主机]
- 触摸云:香港CN2 GIA云服务器,1核/1G/20G/10M,促销月付 香港VPS[主机]
- 极光KVM:4月G口新品发布美国大带宽vps;香港cn2+BGP直连云服 美国VPS[主机]
- 人们为啥不爱吃海底捞了?海底捞上半年亏损达2.97亿 网友神评扎心 全球[VPS测评]
- 美国信贷市场的痛苦将不亚于上世纪70年代的通胀时期 美国VPS[主机]
- 云服务器都是有哪些特点? 全球[VPS测评]
- 云服务器和服务器各有什么优缺点? 全球[VPS测评]
- 适合美容院的正能量抖音文案,唯美阳光,正能量满满 全球[VPS测评]
- BBR对比BBR2BBRPLUSBBR2CAKE锐速哪个效果好 全球[VPS测评]
- 亚马逊卖家与广告流量之间的博弈才刚刚开始?品牌卖家如何冲破广告之困... 全球[VPS测评]
- 亚当云怎么样?香港安畅cn2vps带宽10M月付28元 香港VPS[主机]
- 乐趣云怎么样?香港美国云服务器首月8.8元,新增IP5元/个 美国VPS[主机]
- 轻云互联,香港VPS月付22元 美国VPS月付19元 美国VPS[主机]
- 七安云怎么样?香港CN2+BGP线路VPS 1核1G10M 16/月 香港VPS[主机]
转载请注明原文地址: http://140.238.13.167:12355/read-148280.html











