centos7 VPS 优化

centos7 VPS 优化
1.更新源

   yum update -y && yum install curl -y

2.一键安装最新内核并开启 BBR 脚本(https://teddysun.com/489.html

   wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh

3.安装 kernel-ml-headers

   yum --enablerepo=elrepo-kernel -y install kernel-ml-headers

4.设置默认启动内核

1)查看内核

    cat /boot/grub2/grub.cfg | grep menuentry

2)更改默认内核

     grub2-set-default 'CentOS Linux (4.18.3-1.el7.elrepo.x86_64) 7 (Core)'(引号部分为最新内核通过步骤1获取)

3)验证默认启动内核

      grub2-editenv list

5.安装宝塔面板

P.K

computer loser

评论已关闭