Day 3: Change the default community address of the system, and create the LAN file library and Community file library.
1. download the required file from www.ailiyun.com using CentOS as an example.
2. Two Mount methods.
First, click the help File next to it.
Follow Alibaba's prompts to complete the operation. Back up/etc/yum. repos. s/CentOS-Base.repo (equivalent to changing the suffix ).
Download the new CentOS. It may prompt wget: connot fonnd this founction. That is, your system does not contain wget applets.
Run the following command to write data to yum-y (yse by default) install wget. Message completed! Installation Complete
Once again, follow the installation instructions provided by Alibaba.
After the installation is complete, the addresses in the file will be changed to Alibaba's address. After that, you can find the program and go back to Alibaba's image website to download it.
Method 2
Put the file down and go to Alibaba's website. Then, reload the ios image on the small disc under the Virtual Machine window.
Restart the VM.
Create a directory mkdir/mnt/cdrom to mount the file on the disk to mount/dev/cdrom/mnt/cdrom. {if the file cannot be modified, modify the permission to modify the permission of cdrom. read/write
Mount-o remount, rw/dev/cdrom/mnt/cdrom
} Or mount the iso file to the mount-o loop/home/Centos directory .. switch iso/mnt/cdrom to the/etc/yum. repo. d/create a new file cdrom. repo content [cdrom] name = cdrom_of_centos-5.6baseurl = file:/mnt/cdromenable = 1 // can be installed when equal to 1, if it is equal to 0, gpgcheck = 0 // if it is equal to 0, no gpg file verification is required. If it is equal to 1, the path of the gpg key file must be added below.
Then yum clean all clears all yum caches
Yum makecache generates Cache
Verify yum search wget
The correct wget. x86_64 has been changed successfully.