**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 |
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.
Download link: http://vault.centos.org/
Choose Chinese for installation language, easy to install
Keep the default settings of "Date and Time" and "Software Selection" unchanged.
Set the host name to centos7.6
Configure ip:
Ignore ip v6
Complete network and hostname configuration
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
Waiting for installation
Installation is complete, restart
Alibaba source link: http://mirrors.aliyun.com/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
[ root@centos7 /]# yum clean all
[ root@centos7 /]# yum makecache
Install net-tools tool, run ifconfig command
firewall-cmd --state #View firewall status
systemctl stop firewalld.service #Stop firewall
systemctl disable firewalld.service #Prohibit firewall startup
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