linux_3_29_vm_centos7 download and installation_How to access the Internet in a virtual machine system

1. VMware12pro: Download directly from Baidu, Baidu software library, and install it for fools.

2. Download CentOS7: It is recommended that you use NetEase Cloud Mirror. Address: http://mirrors.163.com/centos/ Select the version you want to download.


3. Install centos7:

  1. Open VMware, create a new virtual machine, choose to install from hard disk, and direct the path to the above to download centos7.iso.
  2. Then click install, here you need to pay attention to the choice of hardware configuration, generally use 20G hard disk capacity, memory is 2G. The CPU uses dual cores. When selecting the software installation, there is no graphical interface for the minimal installation (anyway, God does not use a graphical interface). But having a graphical interface feels different, so I used the GUI installation, and then brought the development kit of the migrant language Java (after installation, the environment variables that enter the system Java need to be reset, please Baidu).
  3. During the installation process, you can first define the password of the root user, and you can also add a user. Note that this user is the default login user in the future. The installation process took about an hour (is my computer too bad!!). If it's an SSD it should be fast.

4. Simple use of vi editor

  1. vi A text file such as vi hello.java.
  2. Press the letter i key on the keyboard to enter Insert mode.
  3. Complete text editing.
  4. Press the esc key and enter ":", wq save and exit, enter q! do not save and exit


5. How CentOS sets up networking:

  1. Open VM-->Edit-->Virtual Network Editor and see that there are two network adapters VMnet1 and VMnet8 by default,
  2. Open Win's Network and Sharing Center --> Change Adapter Configuration to see two adapters, VMnet1 and VMnet8.
  3. Click on the adapter that your machine is connecting to the Internet, click Properties, and check vmnet8 and vmnet1 in "Set this connection as the following item".
  4. Click the properties of VMnet8, "Set this connection as the following item" check VMware Bridge protocal.
  5. The most important step is to set the dhcp properties of our linux system: vi /etc/sysconfig/network-scripts/ifcfg-eth0 (the vi editor is used as above); set dhcp=true;         

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326883982&siteId=291194637