文章目录
1.CentOS 7镜像下载
官网下载链接:http://isoredirect.centos.org/centos/7/isos/x86_64/
操作步骤:进入下载页,选择阿里云站点进行下载
Actual Country 国内资源 Nearby Countries 周边国家资源
阿里云站点:http://mirrors.aliyun.com/centos/7/isos/x86_64/
每个链接都包括了镜像文件的地址、类型及版本号等信息
选择当前国家资源区站点下载,获取资源速度比较快
操作步骤: 进入阿里云站点,选择 CentOS-7-x86_64-DVD-2009.iso
下载
各个版本的ISO镜像文件说明:
CentOS-7-x86_64-DVD-2009.iso 标准安装版(推荐)
CentOS-7-x86_64-Everything-2009.iso 完整版,集成所有软件(以用来补充系统的软件或者填充本地镜像)
CentOS-7-x86_64-LiveGNOME-2009.iso GNOME桌面版
CentOS-7-x86_64-LiveKDE-2009.iso KDE桌面版
CentOS-7-x86_64-Minimal-2009.iso 精简版,自带的软件最少
CentOS-7-x86_64-NetInstall-2009.iso 网络安装版(从网络安装或者救援系统)
温馨提示:7.x版本请下载最新版本,其它7.x旧版本已停止更新。
官方提示:ReadMe -> Please keep in mind that 7.x no longer gets any updates, nor any security fix’s.
2.VMware安装CentOS7
3.安装CentOS 7 的一些基本操作
3.1.安装VMware-tools
- 1.查看
cdrom
目录
- 2.创建
/mnt/cdrom
- 3.挂载目录
- 4.拷贝安装包
(中间有些步骤没截图,就这么凑活着吧)
- 5.安装VMware-tools
当出现上图的情况时,就代表VMware-tools
就安装完成了。
3.2.关闭防火墙
systemctl status firewalld.service #查看 firewalld 服务的状态, active 是启动状态, inactive 是关闭状态
systemctl stop firewalld.service
systemctl list-unit-files |grep firewalld # 查看 firewalld 是否开机自动启动
systemctl disable firewalld.service
3.3.更换yum源
- 1. 备份源文件 或 新建文件
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
但是我这里没有CentOS-Base.repo
,所以就直接创建一个。
touch /etc/yum.repos.d/CentOS-Base.repo
- 2.下载更改源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
- 3.清空yum缓存并生存cache文件
yum clean all
yum makecache
- 4.尝试更新系统
yum -y update
部分截图(这里我用了远程工具,所以色彩看上去会有些不一样):