I saw a variety of errors in installing CentOS-7.0 in the post bar before, I will write this centos 7 installation tutorial for beginners to refer.
We have two ways to install centos: boot through a CD and boot through a USB flash disk.
If you need to set the CD-ROM drive to the highest priority with a CD,
The USB flash drive sets the removable devices priority to the highest.
Note: After installation, remember to set hard drive to the maximum. If you still choose to enable the system to read the mobile device first, the system will read the device first when you connect to the mobile hard disk or the USB flash disk to restart the machine, causing the computer to fail to start normally.
I have installed windows before.
Centos 7 Interface
Select Option 1: Install
This is the language used in the installation process. By default, I chose us-English.
This interface
For the first (Date & time) time zone, we need to adjust it to our zone, which is generally Asia-China-Shanghai.
The second (keyboard) keyboard language is generally the default
The third operating language (Language Support) is generally the default English language.
The fourth (installation source) is the installation resource. Select the default value.
The fifth (software selection) software selection. By default, the installation is minimized and can be adjusted as needed. However, the installation is usually minimized by default. Then we can install the software as needed.
The sixth installation path (installation destination) must be set by yourself. Otherwise, you cannot enter the begin install
Network & hostname
Click installation destination to go to the page and click as shown in the figure.
In this interface, we need to set the partition to standard partition and then add three mount points swap,/data ,/, the size is 2048 (SWAp is generally set to twice the memory size), 2048 (this data is set by yourself), and the remaining size is left to the root. For more information, see
Click Done after setting.
Select accept changes
In this interface, we need to set the user name and password.
For example, user: Root Password: 123456
After installation, restart.
Host Name and IP configuration
Enter
12 |
vi /etc/hostname # Modify the host name after entering onepiece # Modified Host Name |
Enter
123456789 |
cd /etc/sysconfig/network-scripts ll total 212 -rw-r--r--. 1 root root 362 Aug 21 15:19 ifcfg-eno16777736 -rw-r--r--. 1 root root 254 Apr 2 11:30 ifcfg-lo lrwxrwxrwx. 1 root root 24 Aug 21 09:57 ifdown -> ../../.. /usr/sbin/ifdown -rwxr-xr-x. 1 root root 627 Apr 2 11:30 ifdown-bnep -rwxr-xr-x. 1 root root 5553 Apr 2 11:30 ifdown-eth -rwxr-xr-x. 1 root root 781 Apr 2 11:30 ifdown-ippp |
Here part of the screenshot we need to modify is the ifcfg-eno16777736
1234567891011121314151617181920212223 |
vi ifcfg-eno16777736 HWADDR=00:0C:29:B4:96:FD TYPE=Ethernet BOOTPROTO=static # Set to static IP 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=eno16777736 UUID=447c84a6-6198-453e-a766-0b0ce54a17b8 ONBOOT= yes # Enable Automatic Network Connection IPADDR=192.168.188.31 # Setting IP addresses NETMASK=255.255.255.0 # Set Subnet Mask GATEWAY=192.168.188.2 # Set a gateway :wq! # Save and exit service network restart # Restarting the network shutdown -r now # Restarting the system |
We Log On Through securecrt
We can see that the host name and IP address have all changed to the one we set.
Now the installation and basic configuration of centos 7 are complete.
This article is only for cainiao who are new to Linux. I hope you will have some gains after reading this article.
Core installation and configuration of CentOS-7.0