目录

  • 一、下载VMware和CentOS8-stream
  • 二、CentOS安装步骤
  • (1)磁盘分配
  • (2)CentOS的配置


一、下载VMware和CentOS8-stream

下载地址:vmware,参考链接指向的一篇博文

下载地址:CentOS,选择对应的版本,具体选择的方法

centos steam 9 安装mariadb centos8 stream 安装_linux


选择对应的版本,如果没有则选择other其他版本的

centos steam 9 安装mariadb centos8 stream 安装_centos_02


选择25或者更多,显示更多的镜像地址

centos steam 9 安装mariadb centos8 stream 安装_centos_03


找到一个自己觉得好用的云,这里以华为云为例,进入镜像

centos steam 9 安装mariadb centos8 stream 安装_centos_04


选择对应的版本,这里选择8-stream

centos steam 9 安装mariadb centos8 stream 安装_linux_05


逐层进入目录,选择这个.iso文件进行下载

centos steam 9 安装mariadb centos8 stream 安装_CentOS_06

二、CentOS安装步骤

(1)磁盘分配

1、首先选择典型(默认):

centos steam 9 安装mariadb centos8 stream 安装_CentOS_07


2、再选择稍后安装操作系统,先完成磁盘的一些配置工作

centos steam 9 安装mariadb centos8 stream 安装_centos_08


3、选择需要安装的Linux系统

centos steam 9 安装mariadb centos8 stream 安装_自定义_09


4、选择对应下载centos的版本,如果是7开头的版本则选择Red Hat Enterprise Linux 7 64位,这里安装的8开头的centos8.1,所以选择Red Hat Enterprise Linux 8 64位

centos steam 9 安装mariadb centos8 stream 安装_自定义_10


5、给你的虚拟机命名,并且选择安装地址,建议一定自己选择安装地址,不要使用默认地址(路径不要存在中文)

centos steam 9 安装mariadb centos8 stream 安装_centos_11


6、给虚拟机分配磁盘空间,这里使用推荐的(20GB)就可以,因为磁盘空间在以后还能够重新分配,这里只要够用就行

centos steam 9 安装mariadb centos8 stream 安装_CentOS_12


7、开始自定义硬件设施,选择自定义硬件

centos steam 9 安装mariadb centos8 stream 安装_CentOS_13


内存的分配,按照推荐进行分配即可,默认是2GB

centos steam 9 安装mariadb centos8 stream 安装_自定义_14


处理器的分配,首先要查找自己电脑上的CPU个数和内核个数,方法如下,打开任务管理器,进入资源监视器

centos steam 9 安装mariadb centos8 stream 安装_CentOS_15


进入资源监视器,可以看到笔者的电脑有2个CPU和16个内核。

centos steam 9 安装mariadb centos8 stream 安装_CentOS_16


笔者是这样进行分配的

centos steam 9 安装mariadb centos8 stream 安装_CentOS_17


其余的选项都采用默认的配置,点击关闭进入下一步

centos steam 9 安装mariadb centos8 stream 安装_centos_18


点击完成进入下一步

centos steam 9 安装mariadb centos8 stream 安装_centos_19


这时就出现了分配好磁盘空间的虚拟机,点击进入设置

centos steam 9 安装mariadb centos8 stream 安装_CentOS_20


选择默认的磁盘文件的位置,

centos steam 9 安装mariadb centos8 stream 安装_自定义_21


挂载完成后点击确定进行下一步

centos steam 9 安装mariadb centos8 stream 安装_centos_22

(2)CentOS的配置

点击开启虚拟机

centos steam 9 安装mariadb centos8 stream 安装_centos_23


用回车键enter选择开始安装,这里没法截图,在网上找了张图片来进行参考

centos steam 9 安装mariadb centos8 stream 安装_自定义_24

语言选择简体中文

centos steam 9 安装mariadb centos8 stream 安装_CentOS_25


日期和地区选择上海

centos steam 9 安装mariadb centos8 stream 安装_CentOS_26


进入软件选择

centos steam 9 安装mariadb centos8 stream 安装_linux_27


设置如下

centos steam 9 安装mariadb centos8 stream 安装_CentOS_28


接下来选择安装位置

centos steam 9 安装mariadb centos8 stream 安装_自定义_29


配置分区如下

centos steam 9 安装mariadb centos8 stream 安装_CentOS_30


选择自定义

centos steam 9 安装mariadb centos8 stream 安装_CentOS_31


点击完成进行下一步

centos steam 9 安装mariadb centos8 stream 安装_自定义_32


选择/boot,分配1G的空间

centos steam 9 安装mariadb centos8 stream 安装_CentOS_33


centos steam 9 安装mariadb centos8 stream 安装_linux_34


文件系统选择成ext4

centos steam 9 安装mariadb centos8 stream 安装_自定义_35


继续添加swap分区

centos steam 9 安装mariadb centos8 stream 安装_自定义_36


centos steam 9 安装mariadb centos8 stream 安装_centos_37


继续添加根分区

centos steam 9 安装mariadb centos8 stream 安装_linux_38


centos steam 9 安装mariadb centos8 stream 安装_linux_39


点击完成接受更改

centos steam 9 安装mariadb centos8 stream 安装_centos_40


下一步进行网络连接

centos steam 9 安装mariadb centos8 stream 安装_centos_41


centos steam 9 安装mariadb centos8 stream 安装_CentOS_42


设置root密码

centos steam 9 安装mariadb centos8 stream 安装_linux_43

centos steam 9 安装mariadb centos8 stream 安装_自定义_44


创建其他用户,使用该用户进行登录的

centos steam 9 安装mariadb centos8 stream 安装_自定义_45


centos steam 9 安装mariadb centos8 stream 安装_CentOS_46


开始安装

centos steam 9 安装mariadb centos8 stream 安装_自定义_47