CentOS 7 installation and configuration (entry level)
1. Create a virtual machine
Click Close——"Finish, the following page appears, click to start the virtual machine;
Press the up key, select the first one, and press Enter;
Enter the main interface, here I did not choose Chinese, choose what you need, it is more convenient to use English for development;
select time zone
choose shanghai
Here you can install a graphical interface (actually not very useful), here I choose the minimum installation
Install some development tools, click Done in the upper left corner after selecting
Choose where to install
Click Add mount point
enter password twice
Create a user (you don't need to create it, and you can log in directly with root)
Wait for the download, and restart after the download is complete;
Enter the account password, you can use it
2. Configure the network
Check your computer's ip address
Enter ifconfig
to view the ip address
We can configure according to this address later, click Edit—"Virtual Network Editor
Click on NAT Settings
Now enter centos7 to configure
Enter into the configuration file
Press i to enter the editing mode, press after editing Esc
, and then enter :wq
to 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
restart network service
service network restart
Ping www.baidu.com to test network connectivity
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属性
double click this
Enter in centos7 ip addr
to view the IP configuration (because the pure version needs to install the tool yourself, otherwise you can use ifconfig to view the network configuration)
Open the xshell software
Just enter your linux account password
connection succeeded
)]
[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)]