解决7系跑五国慢的问题,CentOS 7.x 内核优化
此前将编译打包的内核发布,现提供完整命令,按顺序一条一条执行即可
rpm --import https://gitee.com/yinghua8wu/Linux-NetSpeed/raw/master/lotserver/centos/RPM-GPG-KEY-elrepo.org >/dev/null 2>&1
yum install git -y >/dev/null 2>&1
git clone https://gitee.com/unmen/centoskernel.git /data >/dev/null 2>&1
cd /data/kernel;rpm -ivh kernel-3.10.0-327.el7.x86_64.rpm --force >/dev/null 2>&1
awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
grub2-set-default 1
grub2-mkconfig -o /boot/grub2/grub.cfg
。
安装结束后重启(reboot)即可生效 1 看不懂,教程呢 顶顶贴 顶 Failed to install module bnxt_en # awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
awk: cmd. line:1: fatal: cannot open file `/etc/grub2.cfg' for reading (No such file or directory)
awk行命令出错了大佬
页:
[1]