Detailed configuration steps for installing Linux (CentOS) under VMware virtual machine

Detailed configuration steps for installing Linux (CentOS) under VMware virtual machine

Download CentOS7

The image I downloaded is CentOS-7-x86_64-DVD-1908.iso . You can also choose freely. The download link is below.

CentOS official website:

http://isoredirect.centos.org/centos/7.4.1708/isos/x86_64/

Alibaba Cloud Site:

http://mirrors.aliyun.com/centos/7/isos/x86_64/

It is recommended to download from the Alibaba Cloud site . Downloading from the official website may be very slow or even the webpage cannot be opened.

VMware Configuration

It is assumed here that you have already installed the virtual machine. If not, please go to the download page.

1. Set IPv4 properties of VMware Network Adapter VMnet8

Please execute in sequence: [Network] → [Change adapter settings] → [Modify the IPv4 address of the network shown in the red box in the figure below]

insert image description here

As shown in the figure below, it should look like this after the modification:

insert image description here

Finally, confirm it and we can proceed.

2. Open VMware virtual machine software

Please execute in sequence: [Edit] → [Virtual Network Editor] in the menu

insert image description here

Set VMnet8 NAT mode: Subnet IP: 192.168.56.0, Subnet mask: 255.255.255.0 Make changes as shown in the figure below.

insert image description here

Then click NAT Settings and change the gateway IP to: 192.168.56.10. Make changes as shown in the figure below.

insert image description hereinsert image description here

Finally, click OK. There may be some lag at this time.

Creating a virtual machine

Open VMware and click Create Virtual Machine, as shown below:

insert image description here

Select the image we just downloaded and click Next.

insert image description here

Give the virtual machine a name and choose where to store it.

insert image description here

Next, specify the disk size, the default is fine.

insert image description here

At this time, click the "Customize Hardware" button: set the memory to 2GB and the processor to 2.

insert image description here

Finally, click Finish.

insert image description here

Configuring CentOS

We first need to install the system. Use the arrow keys to move to Install CentOS 7 and press Enter.

insert image description here

Then after a while, you will see the interface as shown below. Then the default is English, of course, you can also choose Chinese or other languages.

insert image description here

Then click on the red box in the picture below.

insert image description here

At this point, you should have the same interface as the one shown below, then confirm.

insert image description here

Finally, you will find that there is no exclamation mark. But don't rush Begin Installaction, please see below. But don't rush Begin Installaction, please see below. But don't rush Begin Installaction, please see below.

insert image description here

Here is a tip: Linux has a graphical interface and a command line DOS interface. The default is the minimum installation, which is the command line.

If you want to use a graphical interface (like Windows), please select it in the picture below. It is recommended that you use the default minimal installation (command line)

insert image description here

Set password

ROOT password: This password has a very high authority level and is also called super user. USER password: This password has a general authority level and is also called a common user.

While you are waiting for the installation, you may want to set your ROOT password and USER password.

insert image description here

After the settings are completed, click the button as shown and wait for a while again.

insert image description here

After completion, the virtual machine will restart and then come to the interface as shown below.

insert image description here

Login Test

Next, we log in as the root super administrator to test it and type the command:

root

After typing the command, the password input state will appear. Note that the characters you input will not be displayed at this time. Don't think that your keyboard is broken...

When the virtual machine is turned on, the keypad area will be closed. If the password you set contains numbers, please confirm whether to turn on the keypad to avoid mistakenly thinking that the password is forgotten or wrong.

insert image description here

Configure the network

Currently our system has no network connection, we need further configuration.

Note: The vi editing command will be used here. If you are unfamiliar with it, it is recommended to learn it on Baidu.

Type the following command:

vi /etc/sysconfig/network-scripts/ifcfg-ens33 

insert image description here

First press the Instert key to enter the editing mode, and the up and down arrow keys on the keyboard control the input cursor position.

Change the current network configuration to the following one. Note that you should not add the word "modify". This is just a reminder for you.

BOOTPROTO=static (modified)IPADDR=192.168.56.110NETMASK=255.255.255.0GATEWAY=192.168.56.10ONBOOT=yes (modified)DNS1= 8.8.8.8DNS2=8.8.8.4

Press the "ESC key", ":wq" to save and exit, and ":q!" to exit without saving .

After the modification, it looks like this:

insert image description here

You can type the following command to check if your configuration is the same as mine:

cat /etc/sysconfig/network-scripts/ifcfg-ens33

Restart the network

Type the following command:

service network restart

As shown in the figure, the green OK indicates a successful restart.

insert image description here

If you follow the steps strictly, you can ping 192.168.56.10 at this time.

ping ping 192.168.56.10 

insert image description here

Write at the back

Congratulations on completing the configuration. Don't be discouraged if it fails! Just start over!

At this time, you can use remote connection linux tools such as Xshell for remote control. If you want to upload files from local to linux, you can also use Xftp tool.

You may also be interested in:
  • Windows uses VMware to create a Linux virtual machine and install the CentOS7.2 operating system
  • Tutorial on installing CentOs7 with VMware in win7 to build a Linux environment
  • Detailed tutorial on VMware installation of Linux CentOS 7.7 system
  • Linux Learning CentOS (I) ---- Install CentOS 7 in VMware Virtual Machine (Graphic Tutorial)
  • VMware installs Linux system on virtual machine
  • VMWARE installation and Linux system installation under VMWARE (graphic tutorial)
  • Install Linux using VMware virtual machine (CentOS7 image)

<<:  A brief introduction to mysql mycat middleware

>>:  How to use jsx syntax correctly in vue

Recommend

Tutorial on installing php5, uninstalling php, and installing php7 on centos

First, install PHP5 very simple yum install php T...

How to use axios to filter multiple repeated requests in a project

Table of contents 1. Introduction: In this case, ...

4 ways to avoid duplicate insertion of data in Mysql

The most common way is to set a primary key or un...

jQuery implements the function of adding and deleting employee information

This article shares the specific code of jQuery t...

Solution to the problem that the InnoDB engine is disabled when MySQL is started

Find the problem Today at work, when copying tabl...

Detailed explanation of the basic functions and usage of MySQL foreign keys

This article uses examples to illustrate the basi...

A brief understanding of MySQL SELECT execution order

The complete syntax of the SELECT statement is: (...

Step by step guide to build a calendar component with React

Table of contents Business Background Using Techn...

Introduction to possible problems after installing Tomcat

1. Tomcat service is not open Enter localhost:808...

The difference between ENTRYPOINT and CMD in Dockerfile

In the Docker system learning tutorial, we learne...

Django uses pillow to simply set up verification code function (python)

1. Import the module and define a validation stat...

JavaScript implements Tab bar switching effects

Here is a case that front-end developers must kno...