1.Windows virtual machine installation
First create a new virtual machine with VMware
Next, choose to use the installer disk image file
Output product keys (can be found directly from the Baidu)
Disk size virtual machine installation path settings, and assigned to the virtual machine
Next, you can set the hardware attributes of the virtual machine in the custom hardware inside. Here the network adapter to bridge mode
(Bridge mode, and corresponds to a computer constituting a small LAN
NAT mode, can be shared with the host IP in order to access
Host mode, a private network shared with the host only)
Click Finish, wait for the system to automatically install
The installation is complete, a Windows virtual machine to built
2.CentOS virtual machine installation
And Windows to create a new virtual machine
The difference is that here choose to install the operating system later
Then choose Linux, CentOS 7 64 Wei
Then select the installation location, disk size
Then we need to select the ISO image file
Open the virtual machine to wait for the installation program starts
Then you need to make the operation of the installation location and selection software
Set a password for your ROOT
Reboot, wait for the automatic installation
Finally, according to prompts to complete the basic set up to OK!
3. set up a local yum repository
First, open the virtual machine, the login screen select the "unlisted", enter the user name " root " and the password " 123456 "
After logging in, we open the terminal and type: cd .. come (after cd spaces) in the root directory
Enter the command: mkdir / hello (create a directory called hello)
Enter the command: mount / dev / cdrom / hello (yum local source configuration, the disc mount to the hello)
Enter the command: cd /etc/yum.repos.d into yum.repos.d file
Enter the command: ls (open the current folder)
Change the file name using the mv command to modify the file filename suffix .bak (backup file)
We in turn enter the following command:
mv CentOS CentOS Base.repo Base.repo.bak
mv CentOS-Debuginfo.repo CentOS-Debuginfo.repo.bak
mv CentOS-Vault.repo CentOS-Vault.repo.bak
mv CentOS-CR.repo CentOS-CR.repo.bak
mv CentOS-fasttrack.repo CentOS-fasttrack.repo.bak
mv CentOS-Sources.repo CentOS-Sources.repo.bak
(因为之前实验已经更改过了,这里直接下一步叭~)
输入命令:vi CentOS-Media.repo 打开文件CentOS-Media.repo
修改baseurl gpgcheck 和 enabled的值
分别设为:
baseurl = file:///hello
gpgcheck = 1
enabled = 0
输入命令: yum list 打开yum列表
如果我们得到这样media的文件列表,就说明我们的yum仓库已经建立成功啦!
初步总结以及写给自己:两天学习,学了一些知识,但感觉收获最大的不是学到了多少东西,而是收获了一个方向,一种工作和学习的状态。再努力,更优秀,明天加油!