第一步:下载镜像文件并制作启动安装U盘:
1、从centos官网或阿里镜像站下载镜像文件
http://mirrors.aliyun.com/centos/7.9.2009/isos/x86_64/
CentOS-7-x86_64-DVD-2009.iso
2、使用UltraISO制作启动安装U盘
![](https://img-blog.csdnimg.cn/72fd69c0217645f2b8041bdc0ab741ea.png)
第二步:安装
1、选择Install CentOS7来进行安装
![img](https://img-blog.csdnimg.cn/img_convert/aed064c9501d48fc72021002f890b4de.jpeg)
2、选择安装语言,建议选择English,然后点击继续
![img](https://img-blog.csdnimg.cn/img_convert/3e1727817aecea5d643ee47c457c69ba.png)
3、依次进行 [软件选择]和[分区操作]
![img](https://img-blog.csdnimg.cn/img_convert/b96b56e6715f505e58454fe3c6ac32dd.png)
软件安装选择,刚开始建议选择GNOME桌面,环境附加选择GNOME应用程序、互联网应用程序、和开发工具
![img](https://img-blog.csdnimg.cn/img_convert/81717b4e22fe7681ee2a8ced8a872523.png)
4、分区操作,也可以选择自动分区
(1)手动分区
![img](https://img-blog.csdnimg.cn/img_convert/d070333c0ec95e6cff9e20154e794260.png)
(2)进行手动分区配置,点击[我要配置分区]后点击完成
![img](https://img-blog.csdnimg.cn/img_convert/44b2ecad2c7b5e2d907b6145b1587201.png)
(3)进入手动配置分区界面
![img](https://img-blog.csdnimg.cn/img_convert/7775b78b653b7d6e576426e1a9c2e0d7.png)
点击+ 新增一个分区;
挂载点选择swap交换分区(相当于Windwos中的虚拟内存),并设置容量为2G
然后点击挂载
![img](https://img-blog.csdnimg.cn/img_convert/7456c0b9a2cc222551466d98d6317148.png)
点击+ 新增第二个分区;
挂载点选择 / 根目录(相当于Windwos中的C盘),并设置容量为18G
![img](https://img-blog.csdnimg.cn/img_convert/50744cdea2936fd4f48d97eddb025efc.png)
添加挂载点后
点击完成
![img](https://img-blog.csdnimg.cn/img_convert/f79284d338c834a4f0ca014fe24fa8b0.png)
5、开始安装系统
![img](https://img-blog.csdnimg.cn/img_convert/0a29a2d216788e81cbf54bd9578b4543.png)
创建一个普通用户用来登录系统
创建root密码用来高级操作
![img](https://img-blog.csdnimg.cn/img_convert/14cc32ec0f298344dbf230e7d03588e9.png)
点击ROOT密码,输入后点击完成(ROOT密码需要一定的密码强度否则不会通过)
![img](https://img-blog.csdnimg.cn/img_convert/d37f0698e7e4729b58c5828c44ffefac.png)
创建登录用户(此用户用来登录系统所用)
完成后等待安装继续
重启后配置许可证和网络
![img](https://img-blog.csdnimg.cn/img_convert/163375860d9bf49967874618a8277331.png)
点击同意此协议
![img](https://img-blog.csdnimg.cn/img_convert/09be156dd73a5e4ceb500660a476eaf3.png)
配置网络连接
网络的配置方式可以选择动态IP或者静态IP
我这里选择的是静态IP:192.168.2.248
IP地址一定要和上方路由处于同一网段
![img](https://img-blog.csdnimg.cn/img_convert/27b3c040b1b97bdf536bafa34f73f2fa.png)
![img](https://img-blog.csdnimg.cn/img_convert/60238909d1907ea776863d5f9091c614.png)
![img](https://img-blog.csdnimg.cn/img_convert/46d844e898437750543aaa0f114cbff1.png)
![img](https://img-blog.csdnimg.cn/img_convert/cb47b6a671ce72be313f510f5f7ac3ae.png)
![img](https://img-blog.csdnimg.cn/img_convert/82d89f775878015d15bb371c25f9e43f.png)
![img](https://img-blog.csdnimg.cn/img_convert/7d6cde9c0b0a872774791181615d788e.png)
进入系统
点击安装时创建的用户
![img](https://img-blog.csdnimg.cn/img_convert/d9267b5e04dcb386f70f6b42bad03bf4.png)
![img](https://img-blog.csdnimg.cn/img_convert/eca81a9d641049c57321f3d31f761f7f.png)
![img](https://img-blog.csdnimg.cn/img_convert/9d73bab31a285ad08c8953918c6c8433.png)
![img](https://img-blog.csdnimg.cn/img_convert/4a413feb284c4e9a950e5f667f0d4f9d.png)
系统安装完成,接下来就可以正式使用了