资源准备:

VMware14

CentOS-7-x86_64-DVD-1804.iso

步骤:

1.打开VMware,创建新虚拟机

centos安装mongodb6 shell Centos安装图形界面_图形化

2.选择典型,下一步

centos安装mongodb6 shell Centos安装图形界面_图形化_02

3.选择稍后安装,下一步

centos安装mongodb6 shell Centos安装图形界面_linux_03

4.选择Linux,版本为CentOS 7,下一步

centos安装mongodb6 shell Centos安装图形界面_重启_04

5.修改名称、安装位置,下一步

centos安装mongodb6 shell Centos安装图形界面_yum安装_05

6.设置虚拟机磁盘容量,楼主准备用这个虚拟机配置nexus私服,所以将空间分配了40GB

centos安装mongodb6 shell Centos安装图形界面_图形化_06

7.硬件配置,可以以后调整,可以设置也可以默认

centos安装mongodb6 shell Centos安装图形界面_yum安装_07

选择镜像

centos安装mongodb6 shell Centos安装图形界面_图形化_08


centos安装mongodb6 shell Centos安装图形界面_linux_09

8.开启虚拟机,安装镜像

centos安装mongodb6 shell Centos安装图形界面_linux_10

蹦了个这个鬼出来,不用管,直接点是

centos安装mongodb6 shell Centos安装图形界面_图形化_11

9.开始镜像安装,选install CentOS 7

centos安装mongodb6 shell Centos安装图形界面_linux_12

根据提示按回车,回车后等待一会,会出来图形化安装界面

centos安装mongodb6 shell Centos安装图形界面_图形化_13

选择系统语言,我选的中文,点击继续

centos安装mongodb6 shell Centos安装图形界面_linux_14

这些默认就可以不需要调整,但是讲解一下,在软件选择中的最小安装是不带图形化操作桌面的,只有命令行操作,

其他的功能,向图像化操作桌面可以安装完成之后通过yum安装

centos安装mongodb6 shell Centos安装图形界面_yum安装_15

这里我没有做选择,也可以先选择GNOME桌面,之后就不用yum安装桌面了

centos安装mongodb6 shell Centos安装图形界面_图形化_16

在这里自定义一下磁盘空间

centos安装mongodb6 shell Centos安装图形界面_linux_17

选择我要配置分区,然后点完成

centos安装mongodb6 shell Centos安装图形界面_图形化_18

进入分区界面,点击+号进行分区

centos安装mongodb6 shell Centos安装图形界面_图形化_19

先分/boot,设置完点击添加挂载点

centos安装mongodb6 shell Centos安装图形界面_图形化_20

看到分区信息,分区格式为标准分区,然后继续点+,添加其他分区

centos安装mongodb6 shell Centos安装图形界面_linux_21

添加swap分区

centos安装mongodb6 shell Centos安装图形界面_图形化_22

swap分区信息,格式为LVM,然后继续

centos安装mongodb6 shell Centos安装图形界面_重启_23

这里不用填期望容量,剩下的所有容量都将分配在这里

centos安装mongodb6 shell Centos安装图形界面_linux_24

根目录分区信息,点击完成

centos安装mongodb6 shell Centos安装图形界面_图形化_25

点击接受更改

centos安装mongodb6 shell Centos安装图形界面_yum安装_26

更改主机名

centos安装mongodb6 shell Centos安装图形界面_linux_27

配置好后点击完成

centos安装mongodb6 shell Centos安装图形界面_linux_28

点击开始安装

centos安装mongodb6 shell Centos安装图形界面_yum安装_29

设置root用户密码

centos安装mongodb6 shell Centos安装图形界面_图形化_30

密码过于简单的话需要点两次完成

centos安装mongodb6 shell Centos安装图形界面_图形化_31

点击完成配置


centos安装mongodb6 shell Centos安装图形界面_linux_32

已经安装完成,点击重启进入系统

centos安装mongodb6 shell Centos安装图形界面_yum安装_33

重启后选择第一个

centos安装mongodb6 shell Centos安装图形界面_yum安装_34

输入root用户

centos安装mongodb6 shell Centos安装图形界面_图形化_35

输入刚才设置的密码,密码不会显示

centos安装mongodb6 shell Centos安装图形界面_linux_36

成功进入系统

centos安装mongodb6 shell Centos安装图形界面_yum安装_37

系统已经安装成功,现在先修改网卡配置,检查网络连通性,然后安装图形化桌面

先查看一下自己的IP网段

centos安装mongodb6 shell Centos安装图形界面_yum安装_38

设置虚拟机的IP网段,多余的网卡可以移除,我只留了VMnet8,模式设置为NAT,只勾选将主机虚拟适配器连接到此网络

IP地址前三个对应,最后一个为0就代表虚拟机系统ip从0~255都可以

centos安装mongodb6 shell Centos安装图形界面_linux_39

修改系统ip

centos安装mongodb6 shell Centos安装图形界面_重启_40

按i开始编辑

centos安装mongodb6 shell Centos安装图形界面_linux_41

按esc,然后输入指令:wq保存并退出

centos安装mongodb6 shell Centos安装图形界面_图形化_42

重启网络服务检测网络连通性

centos安装mongodb6 shell Centos安装图形界面_yum安装_43

可以看到已经可以上百度了,现在可以yum安装所需环境,例如图形化桌面

指令:yum groupinstall -y "GNOME Desktop"

输入 init 5 进入图形化桌面

centos安装mongodb6 shell Centos安装图形界面_图形化_44

输入密码登录

centos安装mongodb6 shell Centos安装图形界面_linux_45

图形化桌面太大了,只做开发用,不需要图形化操作,坑,下载安装半天

centos安装mongodb6 shell Centos安装图形界面_图形化_46




资源准备:

VMware14

CentOS-7-x86_64-DVD-1804.iso

步骤:

1.打开VMware,创建新虚拟机

centos安装mongodb6 shell Centos安装图形界面_图形化

2.选择典型,下一步

centos安装mongodb6 shell Centos安装图形界面_图形化_02

3.选择稍后安装,下一步

centos安装mongodb6 shell Centos安装图形界面_linux_03

4.选择Linux,版本为CentOS 7,下一步

centos安装mongodb6 shell Centos安装图形界面_重启_04

5.修改名称、安装位置,下一步

centos安装mongodb6 shell Centos安装图形界面_yum安装_05

6.设置虚拟机磁盘容量,楼主准备用这个虚拟机配置nexus私服,所以将空间分配了40GB

centos安装mongodb6 shell Centos安装图形界面_图形化_06

7.硬件配置,可以以后调整,可以设置也可以默认

centos安装mongodb6 shell Centos安装图形界面_yum安装_07

选择镜像

centos安装mongodb6 shell Centos安装图形界面_图形化_08


centos安装mongodb6 shell Centos安装图形界面_linux_09

8.开启虚拟机,安装镜像

centos安装mongodb6 shell Centos安装图形界面_linux_10

蹦了个这个鬼出来,不用管,直接点是

centos安装mongodb6 shell Centos安装图形界面_图形化_11

9.开始镜像安装,选install CentOS 7

centos安装mongodb6 shell Centos安装图形界面_linux_12

根据提示按回车,回车后等待一会,会出来图形化安装界面

centos安装mongodb6 shell Centos安装图形界面_图形化_13

选择系统语言,我选的中文,点击继续

centos安装mongodb6 shell Centos安装图形界面_linux_14

这些默认就可以不需要调整,但是讲解一下,在软件选择中的最小安装是不带图形化操作桌面的,只有命令行操作,

其他的功能,向图像化操作桌面可以安装完成之后通过yum安装

centos安装mongodb6 shell Centos安装图形界面_yum安装_15

这里我没有做选择,也可以先选择GNOME桌面,之后就不用yum安装桌面了

centos安装mongodb6 shell Centos安装图形界面_图形化_16

在这里自定义一下磁盘空间

centos安装mongodb6 shell Centos安装图形界面_linux_17

选择我要配置分区,然后点完成

centos安装mongodb6 shell Centos安装图形界面_图形化_18

进入分区界面,点击+号进行分区

centos安装mongodb6 shell Centos安装图形界面_图形化_19

先分/boot,设置完点击添加挂载点

centos安装mongodb6 shell Centos安装图形界面_图形化_20

看到分区信息,分区格式为标准分区,然后继续点+,添加其他分区

centos安装mongodb6 shell Centos安装图形界面_linux_21

添加swap分区

centos安装mongodb6 shell Centos安装图形界面_图形化_22

swap分区信息,格式为LVM,然后继续

centos安装mongodb6 shell Centos安装图形界面_重启_23

这里不用填期望容量,剩下的所有容量都将分配在这里

centos安装mongodb6 shell Centos安装图形界面_linux_24

根目录分区信息,点击完成

centos安装mongodb6 shell Centos安装图形界面_图形化_25

点击接受更改

centos安装mongodb6 shell Centos安装图形界面_yum安装_26

更改主机名

centos安装mongodb6 shell Centos安装图形界面_linux_27

配置好后点击完成

centos安装mongodb6 shell Centos安装图形界面_linux_28

点击开始安装

centos安装mongodb6 shell Centos安装图形界面_yum安装_29

设置root用户密码

centos安装mongodb6 shell Centos安装图形界面_图形化_30

密码过于简单的话需要点两次完成

centos安装mongodb6 shell Centos安装图形界面_图形化_31

点击完成配置


centos安装mongodb6 shell Centos安装图形界面_linux_32

已经安装完成,点击重启进入系统

centos安装mongodb6 shell Centos安装图形界面_yum安装_33

重启后选择第一个

centos安装mongodb6 shell Centos安装图形界面_yum安装_34

输入root用户

centos安装mongodb6 shell Centos安装图形界面_图形化_35

输入刚才设置的密码,密码不会显示

centos安装mongodb6 shell Centos安装图形界面_linux_36

成功进入系统

centos安装mongodb6 shell Centos安装图形界面_yum安装_37

系统已经安装成功,现在先修改网卡配置,检查网络连通性,然后安装图形化桌面

先查看一下自己的IP网段

centos安装mongodb6 shell Centos安装图形界面_yum安装_38

设置虚拟机的IP网段,多余的网卡可以移除,我只留了VMnet8,模式设置为NAT,只勾选将主机虚拟适配器连接到此网络

IP地址前三个对应,最后一个为0就代表虚拟机系统ip从0~255都可以

centos安装mongodb6 shell Centos安装图形界面_linux_39

修改系统ip

centos安装mongodb6 shell Centos安装图形界面_重启_40

按i开始编辑

centos安装mongodb6 shell Centos安装图形界面_linux_41

按esc,然后输入指令:wq保存并退出

centos安装mongodb6 shell Centos安装图形界面_图形化_42

重启网络服务检测网络连通性

centos安装mongodb6 shell Centos安装图形界面_yum安装_43

可以看到已经可以上百度了,现在可以yum安装所需环境,例如图形化桌面

指令:yum groupinstall -y "GNOME Desktop"

输入 init 5 进入图形化桌面

centos安装mongodb6 shell Centos安装图形界面_图形化_44

输入密码登录

centos安装mongodb6 shell Centos安装图形界面_linux_45

图形化桌面太大了,只做开发用,不需要图形化操作,坑,下载安装半天

centos安装mongodb6 shell Centos安装图形界面_图形化_46