Ali's server basically uses RedHat and CentOS. My work in Ali is going to start from this one~1, enter the update source directory cd /etc/yum.repos.d
2, backup The original CentOS-Base.repo file mv CentOS-Base.repo CentOS-Base.repo.bak
3, create a new CentOS-Base.repo file vi CentOS-Base.repo
The contents of the file are as follows (take CentOS 5.9 as an example): # CentOS-Base.repo## This file uses a new mirrorlist system developed by Lance Davis for CentOS.# The mirror system uses the connecting IP address of the client and the# update status Of each mirror to pick mirrors that are updated to and# geographically close to the client. You should use this for CentOS updates# unless you are manually picking other mirrors.## If the mirrorlist= does not work for you, as a fall back You can try the # remarked out baseurl= line instead.##
[base]name=CentOS-$releasever - Base#mirrorlist=http://mirrorlist.centos.org/?release=$releasever& Arch=$basearch&repo=osbaseurl=http://centos.ustc.edu.cn/centos /$releasever/os/$basearch/gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#released updates[updates]name= CentOS-$releasever - Updates#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updatesbaseurl=http://centos.ustc.edu.cn/centos/$releasever /updates/$basearch/gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released [addons]name=CentOS-$releasever - Addons#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addonsbaseurl=http://centos.ustc.edu.cn /centos/$releasever/addons/$basearch/gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be Useful[extras]name=CentOS-$releasever - Extras#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extrasbaseurl=http://centos.ustc.edu. Cn/centos/$releasever/extras/$basearch/gpgcheck=1gp Gkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages[centosplus]name=CentOS-$releasever - Plus#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplusbaseurl=http://centos.ustc.edu.cn/centos/$releasever/centosplus/$basearch /gpgcheck=1enabled=0gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
4, save and exit. Whether the test is valid by yum update.
zh-CN"],null,[0.96969694],zh-CN"]]]
The web server avoids some unnecessary troubles. You can not display the version information of apa
When using a computer, it often interacts with some encrypted documents, such as Zip, Rar, and even
Cant write data on the hard disk of Linux or UNIX-like systems? Want to solve the problem of disk co
The missing header file ‘security/pam_modules.h’ is part of the libpam development, a P
How to make Linux support ASP/ASP.NET diagram detailed tutorial
Install and configure FTP service in CentOS
The shell intercepts the specified date of the nginx log print out
Openldap installation and configuration basic tutorial
10 tips on command line autocompletion in Linux
Several ways to load Windows partitions
Linux cd command Switch working directory
Mounting of text editors and external storage devices in Linux system
Win7 system notebook wake-up sleep mode wireless can not automatically connect how to do
Summary of lftp usage in Linux system
Win8 system computer F1 key can not open the help and support window solution
Debug windows7 resolution method
How to configure system restore settings in Windows 8
What if win7 can't shut down or turn on the firewall?
Win10 free upgrade is only one year, after the upgrade to pay
The server does not support the curl
Microsoft: At least 200 million PCs sold before the release of Windows 8