One, foreword

This article is a simple program development depends on the system environment installation guide, in the Windows system virtual environment suitable for the program to run, to facilitate our local learning and practice requirements.

Download VMware Workstation Pro

  • VMware Workstation Pro

  • Windows Installation

Note: Windows under the idiot installation, follow the installation wizard step by step, to adjust the basic only installation path. The figure above shows the home page of the virtual machine software.

Download the CentOS7 system image

  • Download the CenOS image from the official website

Note: Select the Linux version of CentOS. Here, select CentOS7 Linux version. Click the mark in the image above and select the image source to download the image

Note: Select a geographic location from their mirror source, select Tsinghua, Ali mirror source download can be.

Note: Select the image source download ali Cloud as an example, the iso image marked in the above image contains a comprehensive package, if you only Minimal installation can also choose centos-7-x86_64-minimal-2009.iso, this image file is much smaller.

4. Install CentOS7 on VMware

1. VMware virtualizes an independent machine

  • Create a VM

  • Select vm hardware compatibility

Note: Default, no compatibility problems.

  • Do not install the client operating system

Note: At this stage only virtualization a machine out, the operating system later installation.

  • Select the client operating system

Note: select the corresponding version. If you want to install CentOS7, choose the version shown in the figure. Assume that you want to install CentOS8, because the kernel version of CentOS8 is usually 4.x, you can choose other general Linux 4.x versions.

  • Vm Naming

Note: Customize a directory where files related to virtual machine virtualization hardware (disks, etc.) are placed.

  • Processor configuration

Note: This according to their own needs and their own physical machine configuration can be selected.

  • Vm memory

Note: This according to their own needs and their own physical machine configuration can be selected.

  • Network Type Setting

Note: only bridge network and the NAT network will be able to access the network, the characteristics of the bridge network is a virtual machine at the same level with the host machine, in the same local area network (LAN), need to consume in an IP network, and virtual machine go real card of host machine, assuming that the host machine no link cable or wifi, so host machine and the virtual machine will not be able to communicate. Each machine (including virtual machine) in the LAN can communicate with each other; A NAT Network enables VMS to communicate with hosts through a virtual Network interface card (NIC), VMware Network Adapter VMnet8. VMS on a NAT Network can use the host to access the Internet and other machines on the same LAN as the host. However, other machines on the LAN other than the host machine cannot access the VM.

  • Select an I/O controller type

  • Selecting a disk Type

  • Select the disk

  • Specifying disk Capacity

Note: The disk capacity can be allocated according to the actual situation. Do not select Allocate all disk space now. If this parameter is selected, the entered capacity of the physical disk will be occupied.

  • Specify disk file

  • Custom hardware

Instructions: Remove unnecessary hardware that you don’t need, such as printers. Click finish, so a virtual machine is ready to install the operating system can be used.

2. Install CentOS7 OS on the VM

  • Insert the DVD into the drive

Note: Before starting the virtual machine, make sure to put the CentOS7 image file, which is equivalent to a DVD, into the cd-rom drive, so that the virtual machine can boot from the DVD and install the operating system.

  • Start the VM and install the OS

Note: Directly install the system, do not need to choose the first test.

  • Setting the system language

Note: After waiting for a moment, the system will automatically enter the boot program interface, the first is to set the system language, Chinese people choose simplified Chinese.

  • Set the network and host name

After setting the language, then set the network, set the network, the time can be automatically obtained.

  • Set date and time



  • Software selection



Look at personal choice, server environment usually adopts minimum installation, later need to use other software to install, keep pure.

  • Disk partition







Note: as shown in the diagram above, we sda virtualization is a piece of hard disk, and the hard drive on this points three area, a/boot boot partition, use operating system boot partition, a swap partition, the above I gave it to 2 g, optimal memory size, too much meaningless, waste of disk space, a root partition allocation for all the rest of the disk capacity.

  • Starting system installation







Note: During the waiting process, you can set the root password. Due to the experimental environment, the password set is very short and simple, prompting that the password is too weak, so you need to click the “Finish” button twice to confirm.

  • Installing the Network Toolkit

yum install -y net-tools

Note: Minimal installation, no network toolkit is installed for us, and we need to easily view virtual machine IP, need to install this package.

  • View the VM IP address

  • Check the external network connection

Note: The network connection is normal. So far, installing CentOS7 on the VM is basically complete.