- 更改 DNS
1 | echo -e "# Generated by NetworkManager\nnameserver 114.114.114.114\nnameserver 119.29.29.29" > /etc/resolv.conf |
- 重启网络服务
1 | systemctl restart network |
- 更新 yum 缓存
1 | yum clean all |
1 | yum makecache |
1 | echo -e "# Generated by NetworkManager\nnameserver 114.114.114.114\nnameserver 119.29.29.29" > /etc/resolv.conf |
1 | systemctl restart network |
1 | yum clean all |
1 | yum makecache |