Day 3: Change the default community address of the system, and create the LAN file library and Community file library.

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.