标签:kernel -- elrepo centos7 wireguard yum 内核
一、centos7升级内核
uname -r 查看内核版本
升级前
升级后
参考链接: https://www.cnblogs.com/rick-zhang/p/14944510.html
# 启用 ELRepo 仓库 rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm yum --disablerepo="*" --enablerepo="elrepo-kernel" list available yum --enablerepo=elrepo-kernel install kernel-ml vi /etc/default/grub 修改GRUB_DEFAULT=0 # 重新创建内核配置 grub2-mkconfig -o /boot/grub2/grub.cfg reboot
2、wireguard优化
内核升级后,wireguard无法启动,报错信息如下
# wg-quick up /etc/wireguard/wg0.conf [#] ip link add wg0 type wireguard RTNETLINK answers: Operation not supported Unable to access interface: Protocol not supported [#] ip link delete dev wg0 Cannot find device "wg0"
参考链接:https://www.wireguard.com/install/
重新安装后恢复
yum install yum-utils epel-release yum-config-manager --setopt=centosplus.includepkgs=kernel-plus --enablerepo=centosplus --save sed -e 's/^DEFAULTKERNEL=kernel$/DEFAULTKERNEL=kernel-plus/' -i /etc/sysconfig/kernel yum install kernel-plus wireguard-tools reboot
标签:kernel,--,elrepo,centos7,wireguard,yum,内核 来源: https://www.cnblogs.com/daixubinbin/p/16257656.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。