Preparations for the Linux environment:
Virtual machine installation package (include key) : pan.baidu.com/s/1ZlDb1AQr… Extraction code: K1KD
CentOS image file address: mirrors.aliyun.com/centos/7/is… Because the download address will change, the address is not available, so download the latest version number, (centos-7-x86_64-DVD -***.iso).
1: vm installation
1.1. Create a VM and select Customize
1.2. Select the default version (Workstation10) and click Next
1.3. Select install OS later and click Next
1.4. Select Linux operating system and CentOS 64-bit
1.5. Name the VM and select a location for storing the VM
1.6. The number of processors can be adjusted for computers with high configuration. Here we set it to 1
1.7. The VIRTUAL machine memory is 1G. If you need it, you can adjust it higher
1.8. Network Type selection – Host mode
1.9. Defaults
1.10. Disk Type – Default value
1.11. Create a virtual disk
1.12. The disk capacity is 20 GB and the disk is stored as a single file. Click Next
1.13. Defaults
1.14. Click Finish
This completes the first step of creating our virtual machine. Next we need to install the image file
2: Install an image
2.1 Click to edit VM Settings
2.2 Click (CD/DVD) to configure the ISO image file and find the downloaded image file (for example: F:\ centos-7-x86_64-DVD-1810.iso).
2.3 Starting the VM: After the CONFIGURATION is complete, the IMAGE file (CD/DVD) exists
2.4 Select Install SentOS 7 Press Enter (Enter)
When you are sure, a screen will prompt you to press Enter
2.5 Selecting Chinese
2.6 Next we set these three
2.7 Here we directly choose a minimum installation, interested partners to install desktop
2.8 Click Complete. Manual configuration is not required
2.8 Click Configuration
2.9 IPv4 Settings: Set the VM IP address to 192.168.50.198
2.10 IPv6 Settings: Ignored
2.11 Settings Finished Click Save to open network connection in the upper right corner and click Finish in the upper left corner
2.12 Here we can also set the host name, as shown in the figure:
2.13 Starting the Installation
2.14 Setting the ROOT Password
2.15 After setting the password, click Finish. If the system prompts that the password is too simple, click Finish twice to save the password and wait for the progress bar to complete the installation.
2.16 Wait until the installation is complete
2.16 Installation complete, let’s restart
3. Linux Settings
1.1 Select the information in the red box. If you do not select the information, it is selected by default
3.2 Enter the user name and password
3.3 Modifying Network Settings
vi /etc/sysconfig/network-scripts/ifcfg-ens33
Copy the code
The configuration is as follows:
IPADDR="192.168.50.198" / / IP address
PREFIX="24"// The subnet mask is 255.255.255.0. You can also write NETMASK="255.255.255.0"
GATEWAY="192.168.50.1"/ / gateway
DNS1="192.168.50.1"/ / the DNS server
Copy the code
Save and exit after modification:
service network restart
Copy the code
3.4 Viewing THE IP Address
If ifconfig cannot be used, use IP addr
Here, the virtual machine has been installed, the following will teach you in Linux network configuration and docker/ JDK /mysql/tomcat and other software, if you have any questions or do not know, please remember to leave a message below, farmers will see the first time reply.