安装

  1. 打开VMware Workstation

搭建Centos ,配置网络 以及换源
2. 点击创建新的虚拟机

兼容性界面,点击下一步(N)

  1. 选择自定义(高级)(C)选项,点击“下一步(N)>”

  2. 选择好centos7的镜像文件后,点击“下一步(N)>”

搭建Centos ,配置网络 以及换源
5. 虚拟机名称(V):HadoopMaster,点击浏览,选择安装位置

处理器配置,可以更改几核cpu(注:这个占用的是你计算机实际的cpu,注意搭配,推荐1)

内存配置,推荐1G(注,占用计算机的实际内存)

网络配置,选择NAT(一般为默认推荐选项)

搭建Centos ,配置网络 以及换源
接下来的三步直接点击下一步即可,都是一些推荐配置,直接下一步

  1. 磁盘容量配置,默认20G,可以根据自己需求和实际硬盘盘符情况进行更改 点击“下一步(N)>”如下所示

搭建Centos ,配置网络 以及换源
搭建Centos ,配置网络 以及换源
7. 这是刚刚配置的硬件信息,可以自定义硬件进行重新定义,点击下一步,如下所示

搭建Centos ,配置网络 以及换源
搭建Centos ,配置网络 以及换源
接着点击开启虚拟机,便开始安装了,如下所示

搭建Centos ,配置网络 以及换源
然后用鼠标点击到该系统里,会发现鼠标箭头不见了,那就说明鼠标已经移动到里面的centos7系统里了,然后点击键盘的上下键,进行选择第一个install CentOS Linux 7,选择后点击回车键,就开始安装了,鼠标想回到windows界面的话按 ctrl + alt 键就可以了。如下所示

搭建Centos ,配置网络 以及换源
搭建Centos ,配置网络 以及换源
搭建Centos ,配置网络 以及换源
搭建Centos ,配置网络 以及换源
搭建Centos ,配置网络 以及换源
搭建Centos ,配置网络 以及换源
搭建Centos ,配置网络 以及换源
搭建Centos ,配置网络 以及换源
搭建Centos ,配置网络 以及换源
搭建Centos ,配置网络 以及换源
搭建Centos ,配置网络 以及换源
搭建Centos ,配置网络 以及换源

Windows中安装xshell和xftp传输软件

1、下载xshell和xftp,一路点击“NEXT”安装完成,在windows桌面上会看到如下图的快捷方式。

搭建Centos ,配置网络 以及换源
2、打开软件,新建连接,设置连接属性

搭建Centos ,配置网络 以及换源

配置网络

  1. 进入网络配置文件目录

cd /etc/sysconfig/network-scripts

搭建Centos ,配置网络 以及换源

  1. 本机通常都是ens33,编辑网络配置文件
    sudo vim ifcfg-ens33

搭建Centos ,配置网络 以及换源
3. 配置选项

搭建Centos ,配置网络 以及换源

网络换源

我们现在把CentOS 7.5的默认yum源更换为国内的阿里云yum源,让下载安装及更新速度更快一些,替换很简单,简单记录一下步骤。

yum repolist enabled 查看使用的是什么源

1、备份

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2 . yum -y install wget 准备wget 工具

3、下载新的CentOS-Base.repo 到/etc/yum.repos.d/

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

  1. 、添加EPEL

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

搭建Centos ,配置网络 以及换源
清理缓存并生成新的缓存

yum clean all

yum makecache

搭建Centos ,配置网络 以及换源

相关文章:

  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-04-21
  • 2021-05-29
  • 2021-11-09
  • 2021-04-24
  • 2021-07-23
猜你喜欢
  • 2021-09-17
  • 2021-11-27
  • 2021-10-17
  • 2021-08-20
  • 2021-05-27
  • 2021-05-17
  • 2021-10-19
相关资源
相似解决方案