CentOS系统初始化
请您在正式使用前运行如下命令,请严格按照顺序执行(只针对国内机器,国外机器请自行选择性执行),一定要开启bbr:
只针对CentOS7.9系统!
1、更改DNS为8.8.8.8 114.114.114.114
在resolv.conf文件中更新DNS
vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 114.114.114.114
重启网络
systemctl restart network
2、更换为阿里云源
安装wget
yum -y install wget
备份
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下载CentOS-Base.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
添加EPEL
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
清理缓存生成新缓存
yum clean all
yum makecache
3、开启bbr
自行去访问查看开启教程,
https://www.cnblogs.com/cuianbing/p/14830574.html