I. System installation
Select Install Centos linux7;==> after entering the system installation interface
Select language (Chinese) = = Select the installation location
1. Configuring partitions
/boot =200m SWAP = twice times of memory all the remaining space is given/
Confirm partition = = "Accept Changes"
2. Set root password, weak password input two times = = "complete
Two. Configure the IP address
1. Auto Get IP Address = = "Dhclient
2. Manually set the IP address (static IP) = =
VI/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-ENS1//configure NIC ens* (NIC name)
DEVICE=ENS1//Module name
Bootproto=static//static IP (dynamic IP is DHCP)
Onboot=yes//boot-up NIC
ipaddr=192.168.1.2//Set IP address
netmask=255.255.255.0//Subnet mask
gateway=192.168.1.1//Gateway
dns1=4.4.4.4//Domain name resolution//above must have
* Partial Interpretation
Type=ethernet #网络接口类型
Ipv6init=yes #是否支持IPV6
Edit End Press ESC to enter WQ save exit
3. Restart the network card: Systemctl Restart Network
At the beginning of your study, you know Linux