CentOS 7 system installation and configuration graphic tutorial

Operating system: CentOS 7.3

**Remarks: **

The CentOS 7.x series has only 64-bit systems, not 32-bits. The production server recommends installing CentOS-7-x86_64-Minimal-1611.iso version

1. Install CentOS 7.3

After successfully booting the system, the following interface will appear

Interface description:

Install CentOS 7 #Install CentOS 7

Test this media & install CentOS 7 #Test the installation file and install CentOS 7

Troubleshooting #Repair the fault

Choose Install CentOS Linux7 here, install CentOS 7, press Enter to enter the following interface

Language selection interface, the official production server is recommended to install the English version.

Continue

Select-SYSTEM-INSTALLTION DESTINATION, enter the disk partition interface

Select-Other Storage Options-Partition Partitoning-I will configure partitioning,

Click "Done" in the upper left corner to enter the interface below

The new mount point uses the following partitioning scheme: Standard Partition

Done

Plan before partitioning, swap #swap partition, generally set to 2 times the memory, / # remaining space

Note: The production server is recommended to be divided into a separate /data partition to store data

Click the "+" sign in the lower left corner, mount point: swap, expected capacity: 4096, add a mount point, as shown in the figure below, continue to click the "+" sign in the lower left corner, mount point: "/" expected capacity:留空#The default is all remaining space, add mount point, as shown in the figure below

Click "Done" in the upper left corner to enter the interface below

Accept the changes Accept Changes, enter the following interface

Software SOFTWARE"-"Software selection SOFTWARE SELECTION", we use the Minimal version, the default is the minimal installation.

After setting, click Done

Begin installation

Enter the interface below

Select-user settings USER SETTINGS-ROOT password, enter the following interface

Set Root password

If the password length is less than 5 digits, you will be prompted to press "Finish" twice to confirm, and the installation will continue. After the installation is complete, you will enter the following interface.

Reboot

Enter the login interface, enter the user name [root] and password [itnihao], the system login is successful

2. Set IP address and gateway DNS

Note: After CentOS 7.x is installed by default, the network connection is not automatically turned on, so we need to configure it ourselves.

Enter #vi /etc/sysconfig/network-scripts/ifcfg-ens33 on the command line #Edit the configuration file, add modifications or add the following content.
BOOTPROTO=static#Enable static IP address
ONBOOT=yes #Turn on automatic network connection
IPADDR=192.168.1.73 #Set the gateway
  GATEWAY=192.168.1.1
  NETMASK=255.255.255.0
  DNS1=114.114.114.114
  DNS2=8.8.8.8

: wq! #Save and exit

service network restart #Restart the network

ping www.baidu.com #Test whether the network is normal

ip addr #View IP address

** At this point, the CentOS 7.3.1611 system installation and configuration graphic tutorial is complete! **

Three: additional

** 1、 Modify host name**

hostnamectl set-hostname compute1

2. Modify network card name###

The network card naming rules in CentOS 7.x system have been redefined. It may be "ifcfg-ens33", etc. Next, we will change the network card to ifcfg-eth0.

1、 cd /etc/sysconfig/network-scripts/

mv ifcfg-ens33 ifcfg-eth0 #Modify name

vi ifcfg-eth0 #Edit

NAME=eth0 #modify

DEVICE=eth0 #modify

:wq! #Save and exit

  1. vi /etc/sysconfig/grub #Edit

Add a sentence "net.ifnames=0 biosdevname=0" to the "GRUB_CMDLINE_LINUX" variable

:wq! #Save and exit

  1. Run the command: grub2-mkconfig -o /boot/grub2/grub.cfg #Regenerate the grub configuration and update the kernel parameters

  2. Add udev rules

Create a network card rule "70-persistent-net.rules" in the "/etc/udev/rules.d" directory, and write the following statement:

SUBSYSTEM=="net",ACTION=="add",DRIVERS=="?",ATTR{address}=="00:0c:29:1e:a3:77",ATTR{type}=="1" ,KERNEL=="eth",NAME="eth0"

#ATTR{address}=="00:0c:29:1e:a3:77" is the MAC address of the network card

cd /etc/udev/rules.d

vi 70-persistent-net.rules #add

SUBSYSTEM=="net",ACTION=="add",DRIVERS=="?",ATTR{address}=="00:0c:29:1e:a3:77",ATTR{type}=="1" ,KERNEL=="eth",NAME="eth0"

:wq! #Save and exit

shutdown -r now #Restart the system

The network card has been changed to eth0

Recommended Posts

CentOS 7 system installation and configuration graphic tutorial
CentOS 6.5 system installation and configuration graphic tutorial (detailed graphic)
Installation and configuration of JDK in CentOS 7 system
Centos mysql installation and configuration
Centos7 installation and configuration prometheus
CentOS 7 installation and configuration PPTP
CentOS installation and configuration cmake
Centos7.5 installation and configuration MongoDB4.0.4
CentOS 7 installation and configuration PPTP
CentOS 7 installation and configuration graphic tutorials under VMware10
MySQL 8.0 installation, deployment and configuration tutorial on CentOS 8
Centos7 installation and configuration of Jenkins
Centos7 hadoop cluster installation and configuration
CentOS 7.X system installation and optimization
Java-JDK installation and configuration under CentOS
CentOS 7 Tomcat service installation and configuration
CentOS NTP server installation and configuration
Centos7 mysql database installation and configuration
Detailed explanation of Spark installation and configuration tutorial under centOS7
Centos 7 64-bit desktop version installation graphic tutorial
Tomcat installation and configuration under CentOS 7 (Tomcat startup)
MySQL 8.0 installation, deployment and configuration under CentOS 6/7
Linux kernel compilation and CentOS system installation
Installation and configuration of redis under centos7
Centos7.6 operating system installation and optimization record
Centos7 hive stand-alone mode installation and configuration
CentOS7 installation zabbix 4.0 tutorial (graphics and text)
Jenkins installation and deployment tutorial under CentOS 7
OpenMPI-Ubuntu installation and configuration
Mysql8.0.15 installation configuration (centos7)
Linux CentOS 7 installation tutorial
Centos7 installation of PHP and Nginx tutorial detailed
Installation and configuration of rsync server under CentOS 6.5
Kaldi installation and configuration graphic tutorials under Ubuntu
Installation and configuration of CentOS 7 in VMware Workstation
Ubuntu16.04 mirror complete installation and configuration tutorial under VMware
Ubuntu and RHEL dual Linux operating system installation tutorial
Ubuntu16.04 installation and simple configuration
Hyper-V + CentOS7 installation video tutorial
centos7 kvm installation and use
Ubuntu12 step-by-step installation and configuration (system, FTP, TELNET.. settings)
CentOS7 postgresql installation and use
ubuntu19.04 installation tutorial (graphic steps)
5.1. CentOS@ install JDK1.8 graphic tutorial
Common exceptions and solutions for Ubuntu system installation and configuration
Centos7.4 environment installation lamp-php7.0 tutorial
Ubuntu PostgreSQL installation and configuration
Detailed tutorial on installing JDK8 on Linux system (CentOS7 installation)
Centos7 elk7.1.1 installation and use
Centos8 minimal deployment and installation of OpenStack Ussuri detailed tutorial
CentOS 8 install Git and basic configuration
Centos iso image file installation tutorial
Centos7 installation of Dameng database tutorial
Centos6.5 installation and deployment of KVM
CentOS 8 installation of MariaDB detailed tutorial
CentOS6 minimal installation KVM detailed tutorial
CentOS7 installation and maintenance of Gitlab
CentOS7.2 and Nginx configuration virtual host
Centos8 installation diagram (super detailed tutorial)
Ubuntu 20.04 CUDA&cuDNN installation method (graphic tutorial)
Centos 7 RAID 5 detailed explanation and configuration