一、前提
环境:VMware
系统:CentOS-7
二、安装步骤
2.1 系统语言选择
2.2 时间时区选择、安装程序选择、磁盘配置
(全功能选择,依据需求可选择剔除)
(选择自主编辑硬盘配置)
(根据需求配置硬盘相关目录)
三、切换yum源
3.1 cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
3.2 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3.3 wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo
3.4 yum install -y epel-release
3.5 yum clean all
3.6 yum makecache
四、关闭防火墙与selinux
4.1 systemctl stop firewalld.service
4.2 systemctl disable firewalld.service
4.3 vi /etc/selinux/config
4.4 /** 改成如下所示 */
至此,CentOS7基础配置完成。