Linux system-Centos7 installation tutorial
Installed image file version
CentOS-7-x86_64-DVD-1511
Downloads from major websites
After creating the virtual machine, put the image file into the VM DVD drive
Turn on the virtual machine
Select Install CentOS 7 to install
Carriage return
Select the installation language (the language of the installation process is not the language of the system after installation)
Select disk
System installation is best to use minimal installation, and the required software packages are selected
At the same time, you can set the machine name and configure the network
After completion, click Start installation to proceed to the next installation step
Set the password of the administrator root
After the installation process is complete, choose to restart the system
Enter the user and password to log in, and the entire installation process is over
After logging in, I found that the ifconfig command cannot be used. The result is that the net-tools.x86_64 package is not installed. Well, I can only install it with yum install
[ root@centos7 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE="Ethernet"
BOOTPROTO="static"
IPADDR=192.168.1.218
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=218.108.248.200
DEFROUTE="yes"
PEERDNS="yes"
PEERROUTES="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
NAME="eth0"
UUID="0fdc93a8-ec13-4fbe-90f3-bbfa4b83e514"
DEVICE="eno16777736"
ONBOOT="yes""/etc/sysconfig/network-scripts/ifcfg-eth0" 20L, 406C written
After configuring the address and DNS information, you can connect to the network normally. In order to facilitate the SSH connection, it is necessary to configure a fixed IP
[ root@centos7 ~]# ifconfig
eno16777736: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.218 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::20c:29ff:fee0:b1d3 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:e0:b1:d3 txqueuelen 1000(Ethernet)
RX packets 925 bytes 639103(624.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 472 bytes 59555(58.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
After the address configuration is complete, you can configure the yum source
[ root@centos7 yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
[ root@centos7 yum.repos.d]# ll
total 32-rw-r--r--.1 root root 1572 May 182015 CentOS7-Base-163.repo
- rw-r--r--.1 root root 1664 Dec 92015 CentOS-Base.repo
- rw-r--r--.1 root root 1309 Dec 92015 CentOS-CR.repo
- rw-r--r--.1 root root 649 Dec 92015 CentOS-Debuginfo.repo
- rw-r--r--.1 root root 290 Dec 92015 CentOS-fasttrack.repo
- rw-r--r--.1 root root 630 Dec 92015 CentOS-Media.repo
- rw-r--r--.1 root root 1331 Dec 92015 CentOS-Sources.repo
- rw-r--r--.1 root root 1952 Dec 92015 CentOS-Vault.repo
[ root@centos7 yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.1117[root@centos7 yum.repos.d]# mv CentOS7-Base-163.repo CentOS-Base.repo
Recommended Posts