Mirror download address:
https://vault.centos.org/
1. Enter the CentOS download official website and select the CentOS7.4 version
It is recommended to use Thunder to download, which is faster.
Second, install the CentOS7 virtual machine
1. Open your VMware Workstation Pro and click "Create a new virtual machine"
2. Select Custom (recommended), and click "Next"
3. Continue to the next step
4. Click to install the operating system (S) later, and click "Next"
5. Click Linux(L), because the downloaded CentOS-7-x86_64-DVD-1708.iso is a 64-bit 7.4 version, so select the 64-bit version of CentOS7, and click "Next"
6. The name of the virtual machine can be changed or not, depending on your needs, modify the installation path of the virtual machine, and click "Next"
7. Add more cores for the processor, click Next
8. Memory is very important. Try to allocate more points to the virtual machine, but not exceed the maximum recommended memory. Click Step
9. By default, the next step, the next step... to the specified disk capacity, give more capacity, the next step.
10. Next, Next, and then click Finish
11. Click "Edit Virtual Machine Settings"
12. Click "Use ISO image file (M)" and add the CentOS-7-x86_64-DVD-1708.iso we downloaded earlier
13. Remove the USB controller, sound card and printer just to free up more resource space (you can choose to skip or not remove), and finally click OK
14. Click to start the virtual machine
15. Move the mouse into the virtual machine, press the "↑" key, select Install CentOS 7, and finally press the "Enter key"
提示: 鼠标移动到虚拟机内部单击或者按下Ctrl + G,鼠标即可移入到虚拟机中
按下Ctrl + Alt,鼠标即可移出虚拟机
注意: 在虚拟机中的操作,鼠标必须要移入到虚拟机中,否则虚拟机感应不到,无法对其进行操作
16. Scroll to the bottom and select Chinese, click "Continue"
17. Click Software Selection
18. Select GUI installation
19. Select the installation location (D)
20. Select I want to configure the partition, and then click Finish
21. Click + to add partition
22. Add a /boot partition with a size of 300MB. Click to add a mount point to add a swap partition. Generally, it is twice the size of the physical memory. It is used when the physical memory is insufficient, but it may cause system instability, so it depends on the situation. Set it a little smaller, even set it to 0MB, here I set it to 512MB
23. Add the root partition, do not fill in the size, that is, the default remaining space is given to the root partition
24. Click Finish, and then click Accept Changes
23. Click to start the installation, click to set the password (administrator password) and wait for the installation to complete (the installation is completed in a few minutes faster)
24. After the installation is complete, click to restart, wait for a while and click to accept the license
25. Click Agree, then click Finish, and then click Finish Configuration
25. Click forward to go to the configuration time zone interface, enter Shanghai, select Shanghai time zone, and then click forward
26. Click to skip
27. Configure an ordinary user, and then click forward
28. Set a password, and then click forward
29. Enough trouble, start using
$表示普通用户权限
#表示root权限
1、右键,点击打开终端
2、输入su、再输入刚配置的root密码