vmware安装centos7


文章目录

  • vmware安装centos7
  • 一、下载CentOS 7
  • 二、安装步骤
  • 1.新建虚拟机
  • 2.centos7安装
  • 二、配置网络
  • 1.登录root用户
  • 2.配置网络

一、下载CentOS 7

CentOS官网: https://www.centos.org/download/

阿里镜像上下载: http://mirrors.aliyun.com/centos/7/isos/x86_64/

二、安装步骤

1.新建虚拟机

打开VMware Workstation Pro,然后选择文件点击新建虚拟机

centos 在线安装 pyenv 在线安装centos7_root用户


选择典型(推荐)安装,然后点击下一步

centos 在线安装 pyenv 在线安装centos7_root用户_02


选择稍后安装操作系统,然后下一步

centos 在线安装 pyenv 在线安装centos7_centos_03


选择linux以及centos 版本,点击下一步

centos 在线安装 pyenv 在线安装centos7_root用户_04


给虚拟机命名,选择安装路径,下一步

centos 在线安装 pyenv 在线安装centos7_root用户_05


设置磁盘大小,选择将虚拟磁盘拆分为多个文件,下一步

centos 在线安装 pyenv 在线安装centos7_root用户_06


选择自定义配置,修改对应配置文件

centos 在线安装 pyenv 在线安装centos7_centos_07


在新cd/dvd中选择自己下载好的centos7 iso文件,关闭配置,点击完成

centos 在线安装 pyenv 在线安装centos7_centos_08

2.centos7安装

开启新建的虚拟机,等待安装,待下图界面出来选择中文,点击继续


软件选择中,选择GNEOM桌面,点击完成

centos 在线安装 pyenv 在线安装centos7_root用户_09


centos 在线安装 pyenv 在线安装centos7_centos 在线安装 pyenv_10


选择安装位置,选择自己配置的磁盘,点击完成,点击开始安装

centos 在线安装 pyenv 在线安装centos7_linux_11


centos 在线安装 pyenv 在线安装centos7_运维_12


设置root密码,等待安装完成,然后点击重启

centos 在线安装 pyenv 在线安装centos7_linux_13


centos 在线安装 pyenv 在线安装centos7_root用户_14


centos 在线安装 pyenv 在线安装centos7_root用户_15


点击勾选同意许可,点击完成配置

centos 在线安装 pyenv 在线安装centos7_运维_16


centos 在线安装 pyenv 在线安装centos7_root用户_17


设置语言、时区、账户、密码,安装完成

centos 在线安装 pyenv 在线安装centos7_root用户_18


centos 在线安装 pyenv 在线安装centos7_linux_19



centos 在线安装 pyenv 在线安装centos7_root用户_20


centos 在线安装 pyenv 在线安装centos7_centos_21

二、配置网络

1.登录root用户

判断是否为root用户,如果不是选择root,然后注销,在界面选择未列出,然后通过设置好的密码登录root账户

centos 在线安装 pyenv 在线安装centos7_运维_22


centos 在线安装 pyenv 在线安装centos7_运维_23

2.配置网络

选择应用程序,点击系统工具,然后选择终端

centos 在线安装 pyenv 在线安装centos7_centos 在线安装 pyenv_24


在终端中输入 ls /etc/sysconfig/network-scripts

centos 在线安装 pyenv 在线安装centos7_运维_25


输入 vi /etc/sysconfig/network-scripts/ifcfg-ensXX(XX替换为自己的数值),此时进入ifcfg-ensXX这个网络配置文件的阅读模式,接着按 i键,即insert,进入文本插入编辑模式,将对应参数修改为BOOTPROTO=dhcp,ONBOOT=yes。修改完之后,先按Esc键,再按:键,然后输入wq,点击回车保存退出vim编辑器

centos 在线安装 pyenv 在线安装centos7_root用户_26


输入service network restart重启网络

centos 在线安装 pyenv 在线安装centos7_centos_27


输入ifconfig便可查到自己的网络ip

centos 在线安装 pyenv 在线安装centos7_centos 在线安装 pyenv_28


也可以通过火狐浏览器查看是否可以上网

centos 在线安装 pyenv 在线安装centos7_linux_29


centos 在线安装 pyenv 在线安装centos7_运维_30