0
点赞
收藏
分享

微信扫一扫

学习记录:Centos 7 下载+安装+更换国内源

棒锤_45f2 2022-04-07 阅读 35
linux

文章目录


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



1.1



1.2


2


3


4



5.1



5.2



6


7


8


9



10


11


12


13



14


15



16


17


18


19


20


21



在这里插入图片描述



22



23


24



25



26



27


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

部分截图(这里我用了远程工具,所以色彩看上去会有些不一样):
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述


举报

相关推荐

0 条评论