由于安装Google bbr需要对CentOS 7的内核进行升级,我的VPS是Digitalocean CentOS 7.4 x64,原本内核版本如下:
[michael@centos74 ruisu]$ uname -r
3.10.0-693.21.1.el7.x86_64
执行升级内核命令如下:
yum --enablerepo=elrepo-kernel -y install kernel-ml kernel-ml-devel
结果提示:
[michael@centos74 ~]$ sudo yum --enablerepo=elrepo-kernel -y install kernel-ml kernel-ml-devel
[sudo] password for michael:
Loaded plugins: fastestmirror
Error getting repository data for elrepo-kernel, repository not found
解决办法:
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
然后再执行升级内核命令:
yum --enablerepo=elrepo-kernel -y install kernel-ml kernel-ml-devel
这次就能够成功执行了。
参考文章: