Centos7.5 Linux system installation

1. System environment.

Virtual machine: VMware Workstation Pro

Centos7.5 system: Linux

Mirror: CentOS-7-x86_64-DVD-1804.ios

Two, Linux system creation.

1) Right-click the file and click New Virtual Machine

2) Select Custom, then the next step

3) Select hardware compatibility according to your needs, and then the next step

4) Choose to install the operating system later, then the next step

5) Select the version you want to install, then the next step

6) Customize the name and location of the virtual machine, and then the next step

7) Number of processors and cores, then the next step

8) Memory for the virtual machine

9) Network mode, then the next step

10) default, then the next step

11) default, then the next step

12) Create a new disk, then the next step

 

13) Disk size

14) By default, the next step

15) Click on Customize Hardware

16) Click CD, select the image to use, and close.

Baidu network disk image extraction link: https://pan.baidu.com/s/1F8NfVzGGsiNxyPnjgbh-cg?pwd=narc 
Extraction code: narc

Three, Linux system installation.

1) Turn on the virtual machine

2) Select the first carriage return

3) Select the linux installation language, choose according to your needs, and then click continue

4) Modify the time and region 

then click finish

5) Select software installation

According to your own needs, select the environment to be installed. What I installed here is the minimal version (command line), and then click Finish 

 

6) Look at the installation location, then exit, click to start the installation

This is what it looks like being installed

7) Set the root user password (the password required to log in), then click Finish and wait for the installation to complete.

After the installation is complete, click Restart.

Four, Linux configuration.

1) Enter the login user and password set before

2) Configure the ip address and external network.

First configure the ip address

BOOTPROTO=none/static Turn off dynamic acquisition of ip

ONBOOT=yes activate network card

IPADDR=192.168.1.30 static ip address

DNS1=8.8.8.8 DNS address

NETWASK=255.255.255.0 subnet gateway

GATEWAY=192.168.1.254 external network gateway

Configure external network

Select VMnet8 and click Change Settings

Select VMnet8, configure the subnet Ip and subnet mask, then click DHCP Settings to  repair the external network gateway, then confirm, and then confirm 

Test whether the external network can be pinged

Five, Xshell remote connection.

1) Install the Xshell tool.

Use the tools I uploaded directly, or download an xshell yourself

Baidu network disk link: https://pan.baidu.com/s/1O08nbgq9ijsI4s3ne7f8pQ?pwd=narc

Extraction code: narc

Using what I uploaded may report an error , you need to manually execute a LiveUpdate.dat file first, and then run Xshell.exe

 2) Check whether ssh is installed and whether the firewall firewalld is closed (it’s okay if it’s not closed)

3) Query the ip address and connect remotely through xshell

Open xshell and create a new connection

name and ip address, ssh uses port 22 by default

Click User Authentication, then enter the username and password, and click OK

Double-click the connection, then accept and save the password

connection succeeded! !

Remember to take an initial snapshot after the above configurations are correct, to save trouble later.

6. Errors that may occur.

1) Xshell cannot connect to the virtual machine

 

Check the ip, user name, password, the same ip address segment of the external network and the same ip address segment, ssh, etc. There is no problem, but Xshell just cannot connect to the virtual machine. It may be that the ip of the VMnet8 network adapter conflicts with the ip of the virtual machine.

open the network first

Click on Change Adapter Options 

Double click to open properties

It is found that the ip address is the same as the ip of the virtual machine 

Change the VMnet8 IP address, or the IP address of the virtual machine so that there is no conflict

After modifying, click OK , and then click OK , otherwise the modification will not take effect.

Then reconnect.

2) There is a problem with automounting.

Enter the password to log in first.

It was found that the ip address was not found, but we have clearly configured the relevant configuration, and it was still used normally before. 

Finally, through journalctl -xb | grep mount, it is found that there is a problem with the automatic mounting. Comment out /dev/cdrom and restart the network card. 

Do not comment it as /centos-root, if you only have one root user, and after commenting out this, no matter what you do, you can’t save it. (I commented it out on purpose, and then I didn't have the right to save it, and there was only one root user, and there was no snapshot, and then I directly deleted the virtual machine and reconfigured it).

Guess you like

Origin blog.csdn.net/kking_Ran/article/details/127437470