????2. ????????
????0 . ??????????? Linux ?????а??汾???
????????? lsb_release ??????У?
????lsb_release -a
???????????
????cat /etc/issue
????1 . ???? CentOS?????? /etc/yum.repos.d/ ?μ? CentOS-Base.repo ?? epel.repo ????????? CentOS ?汾??????????????????:
????CentOS 5:
????wget -qO /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
????wget -qO /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-5.repo
????CentOS 6:
????wget -qO /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
????wget -qO /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
????CentOS 7:
????wget -qO /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
????wget -qO /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
????repo ?????????????У?
????yum makecache
????2 . ???? Aliyun 5.7?????? /etc/yum.repos.d/CentOS-Base.repo ????????:
????wget -qO /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/aliyun-5.repo
????repo ?????????????У?
????yum makecache
????3 . ???? Ubuntu?????? /etc/apt/sources.list ???????????а?汾?????????:
????ubuntu12.04:
????wget -qO  /etc/apt/sources.list http://mirrors.aliyun.com/repo/ubuntu1204-lts.list
????ubuntu14.04:
????wget -qO  /etc/apt/sources.list http://mirrors.aliyun.com/repo/ubuntu1404-lts.list
?????????У?
????apt-get update
????4 . ???? Debian?????? /etc/apt/sources.list ???????????а?汾?????????:
????debian6:
????wget -qO /etc/apt/sources.list http://mirrors.aliyun.com/repo/debian6-lts.list
????debian7:
????wget -qO /etc/apt/sources.list http://mirrors.aliyun.com/repo/debian7-lts.list
?????????У?
????apt-get update
????3. ?????????????
???????????????????????????????????????????? bash ??glibc ?? openssl ??wget ??ntp ??
??????????????????????????????????????????????????
????1 . ???? CentOS ?? Aliyun Linux????У?
????yum update bash glibc openssl wget ntp
????2 . ???? Ubuntu ?? Debian????У?
????apt-get install bash libc6 libc-bin openssl wget ntp