centos更换阿里云镜像源
#!/bin/bash #date:20200410 #author:zyq . /etc/init.d/functions export export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' yumAddress=/etc/yum.repos.d/CentOS-Base.repo #确保DNS可用 cat >> /etc/resolv.conf <<EOF nameserver 114.114.114.114 nameserver 223.5.5.5 nameserver 8.8.8.
用户评论