CentOS 7 installation and configuration (entry level)

CentOS 7 installation and configuration (entry level)

1. Create a virtual machine

image-20220710222651437

image-20220710222754205

image-20220710222948078

image-20220710223014426

image-20220710223106122

image-20220710223300322

image-20220710223534005

image-20220710223711554

image-20220710223738293

image-20220710223755789

image-20220710223827471

image-20220710223845951

image-20220710224000040

image-20220710224020956

image-20220710224104403

image-20220710224210755

image-20220710224354968

Click Close——"Finish, the following page appears, click to start the virtual machine;

image-20220710224516327

Press the up key, select the first one, and press Enter;

image-20220710224547267

Enter the main interface, here I did not choose Chinese, choose what you need, it is more convenient to use English for development;

image-20220710224815205

select time zone

choose shanghai

image-20220710225106218

Here you can install a graphical interface (actually not very useful), here I choose the minimum installation

image-20220710225247631

Install some development tools, click Done in the upper left corner after selecting

image-20220710225421164

Choose where to install

image-20220710225709972

image-20220710225748563

image-20220710225914774

Click Add mount point

image-20220710230024927

image-20220710230206206

image-20220710230253718

image-20220710230331101

image-20220710230438212

image-20220710230455415

image-20220710230523634

enter password twice

image-20220710230543219

Create a user (you don't need to create it, and you can log in directly with root)

image-20220710230617546

Wait for the download, and restart after the download is complete;

image-20220710232226293

Enter the account password, you can use it

image-20220710232324078

2. Configure the network

Check your computer's ip address

image-20220711205454178

Enter ifconfigto view the ip address

image-20220711205810079

We can configure according to this address later, click Edit—"Virtual Network Editor

image-20220711211005707

image-20220711211545601

Click on NAT Settings

image-20220711212210473

Now enter centos7 to configure

Enter into the configuration file

image-20220711213223394

Press i to enter the editing mode, press after editing Esc, and then enter :wqto save

IPADDR=192.168.1.131
GATEWAY=192.168.1.2
NETMASK=255.255.255.0
DNS1=8.8.8.8
DNS2=223.5.5.5

image-20220711213724855

restart network service

service network restart

image-20220711214309622

Ping www.baidu.com to test network connectivity

image-20220711214702013

3. Expansion

If you want to use the xshell tool, you also need to configure the following, open the search, enter 网络连接, right-click to select属性

image-20220711215444294

double click this

image-20220711215527842

image-20220711215637673

Enter in centos7 ip addrto view the IP configuration (because the pure version needs to install the tool yourself, otherwise you can use ifconfig to view the network configuration)

image-20220711215902338

Open the xshell software

image-20220711220023539

image-20220711220040206

Just enter your linux account password

image-20220711220112438

connection succeeded

image-20220711220143338

)]

[External link image transfer...(img-AveX592T-1657548470799)]

Just enter your linux account password

[External link image transfer...(img-jRXiuQ44-1657548470799)]

connection succeeded

[External link image transfer...(img-KK0PB13i-1657548470800)]

Guess you like

Origin blog.csdn.net/qq_42098986/article/details/125732231