Centos7.6 operating system installation and optimization record

**Environmental description: **

Hostname centos version cpu memory Vmware version ip address
centos7.6 7.6 x86_64-Minimal-1810 2C 2G 12.5.2 172.27.9.131

1. Media download#

1. 7.6 Version download link##

Download link: http://isoredirect.centos.org/centos/7/isos/x86_64/

This article chooses the download source and centos version as http://mirrors.aliyun.com/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-Minimal-1810.iso

For general installation, choose the version CentOS-7-x86_64-DVD-1810.iso. This version is the standard version and also the recommended version. CentOS-7-x86_64-Minimal-1810.iso is the smallest version with the minimum packages required for system operation number.

2. Historical version download link##

Download link: http://vault.centos.org/

Two, operating system installation#

1. start installation##

2. Choose Chinese##

Choose Chinese for installation language, easy to install

3. Installation information summary##

Keep the default settings of "Date and Time" and "Software Selection" unchanged.

4. Configure network and hostname##

Set the host name to centos7.6

Configure ip:

Ignore ip v6

Complete network and hostname configuration

5. Custom Partition##

The system automatically creates a VG: centos_centos7, the boot size is 1024MB, the swap size is 2048MB and it is also located in the logical volume.

Modify vg:

Change the vg name to root-vg, and the size to "as large as possible".

The file system is shown in the figure:

New file systems /root, /home, /opt, /var, /tmp, /usr are all 5G in size, which can be allocated according to disk space and business needs. The file system format defaults to xfs, and the remaining 66.99G of vg is used for later file system expansion.

Click Finish to accept the changes

6. Set root password##

7. start installation##

Waiting for installation

Installation is complete, restart

8. File system view##

Three, system optimization#

1. Configure Ali Source##

Alibaba source link: http://mirrors.aliyun.com/repo/

1.1 Download Alibaba Cloud's repo

[ root@centos7 /]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
[ root@centos7 /]# yum -y install wget
[ root@centos7 /]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

1.2 Clear the cache and generate a new cache

[ root@centos7 /]# yum clean all
[ root@centos7 /]# yum makecache

1.3 verification###

Install net-tools tool, run ifconfig command

2. Turn off the firewall##

firewall-cmd --state        #View firewall status
systemctl stop firewalld.service        #Stop firewall
systemctl disable firewalld.service     #Prohibit firewall startup

3. Close selinux

getenforce  #View selinux status
setenforce 0    #Temporarily shut down selinux
sed -i 's/^ *SELINUX=enforcing/SELINUX=disabled/g'/etc/selinux/config  #Permanent shutdown (requires system restart)

At this point, the Centos7.6 operating system installation and optimization are completed.

Recommended Posts

Centos7.6 operating system installation and optimization record
CentOS 7.X system installation and optimization
001. Installation of enterprise-level CentOS7.6 operating system
CentOS 7 system installation and configuration graphic tutorial
Linux kernel compilation and CentOS system installation
Centos7.2 system optimization original
Installation and configuration of JDK in CentOS 7 system
CentOS 6.5 system installation and configuration graphic tutorial (detailed graphic)
Centos 7 mini installation process record
Centos mysql installation and configuration
CentOS system optimization script, unfinished
Centos7 installation and configuration prometheus
Ubuntu and RHEL dual Linux operating system installation tutorial
CentOS 7 installation and configuration PPTP
CentOS 6.x installation mysql5.7 record
CentOS installation and configuration cmake
Centos7.5 installation and configuration MongoDB4.0.4
CentOS 7 installation and configuration PPTP
centos7 kvm installation and use
CentOS7 postgresql installation and use
Centos backend system setup record
Centos7 elk7.1.1 installation and use
Centos7 notes | operating system startup process, Linux users and permissions
Centos7 installation and configuration of Jenkins
Centos6.5 installation and deployment of KVM
Centos7 hadoop cluster installation and configuration
CentOS7 installation and maintenance of Gitlab
Java-JDK installation and configuration under CentOS
CentOS 7 Tomcat service installation and configuration
Install Centos7 operating system in Docker
CentOS NTP server installation and configuration
CentOs7 installation and deployment Zabbix3.4 original
Erlang 20.2 installation and deployment under CentOS 7
Centos7 mysql database installation and configuration
2019-07-09 CentOS7 installation
centos7_1708 installation
Graphic KVM to install CentOS7.6 operating system
Installation and use of Mysql under CentOS
Tomcat installation and configuration under CentOS 7 (Tomcat startup)
MySQL 8.0 installation, deployment and configuration under CentOS 6/7
Ubuntu18.04 system installation and prerequisite software installation guide
Centos-6.5 installation and deployment of LNMP environment
Installation and configuration of redis under centos7
Centos7 installation and deployment of gitlab server
Centos7 compile and install MySQL8 problem record
Centos python3 compile installation and compile gcc upgrade
Zabbix installation and deployment and localization under CentOS
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
KVM installation and preliminary use under CentOS 7.2
Centos7 installation and deployment of Airflow detailed
Centos5 installation guide
Correspondence between CentOS (RHEL) kernel version and system version
Python - centos6 installation
centos system management
Docker installation (CentOS7 installation)
CentOS 7 installation and configuration graphic tutorials under VMware10
Centos7 installation of PHP and Nginx tutorial detailed
Installation and configuration of rsync server under CentOS 6.5
Ubuntu system installation