窗外风雪再大

也有我陪伴着你

全文字数:1677

阅读时间:20分钟

Windows 平台下 Linux 的安装

_

前言

_

本文将介绍如何在Windows机器上进行Linux-CentOS的安装,在第一部分我会以截图的形式简述安装的步骤,在第二部分我会就安装时的一些注意事项进行深入讲解。

首先,大体把虚拟机的安装分为两步,第一步通过VMware软件进行虚拟空间的划分,第二部在此空间内部进行CentOS的安装。

对于Vmware和CentOS的安装,我将不会赘述,这里直接给出地址:

  • Vmware:提取码:ptjp

    https://pan.baidu.com/share/init?surl=ZphJQDo1gH1O56IrJHwi5g

  • CentOS:提取码:nayt

    https://pan.baidu.com/share/init?surl=SFkDLRznNQKHCRht-I0C5g

  • xShell:提取码:fxj6

    https://pan.baidu.com/share/init?surl=MCZuOib8LSHHQjZpSKRxxQ

当然,如果你足够有钱能买得起好几台机器,一台装Windows,一台装linux,一台装MacOs,还有一台装逼,那么这篇推文你完全可以当作是垃圾????。

步骤演示

1

  • 使用VMware安装虚拟机空间

    • 创建虚拟机

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

    • 先不急着安装操作系统

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

    • 选择对应版本

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

    • 命名虚拟机

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

    • 分配内存空间(建议20G)

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

    • 点击完成即可

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

  • 安装CentOS软件

    • 点击"虚拟机 --> 设置"完成已下载好的CentOS镜像的导入

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

    • 导入之后,进入如下页面

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

    • 按照图示参数进行配置(问题a

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

    • 点击确定之后进入如下页面

_

Windows 平台下 Linux 的安装

_

    • just follow me(需要注意的是:进入虚拟机环境之后,通过Tab进行选项的切换,通过Ctrl+Alt进行Windows和Linux环境的切换)

Windows 平台下 Linux 的安装

_

    • 点击Next

_

Windows 平台下 Linux 的安装

_

    • just follow me

_

Windows 平台下 Linux 的安装

_

    • just follow me

_

Windows 平台下 Linux 的安装

_

    • just follow me

_

Windows 平台下 Linux 的安装

_

    • just follow me

_

Windows 平台下 Linux 的安装

_

  • 取名为hadoop1,方便以后做大数据用

_

Windows 平台下 Linux 的安装

_

    • 设置时区

_

Windows 平台下 Linux 的安装

_

    • 设置密码

_

Windows 平台下 Linux 的安装

_

  • 自己动手来分区

_

Windows 平台下 Linux 的安装

_

  • 点击创建

_

Windows 平台下 Linux 的安装

_

    • 添加boot分区

_

Windows 平台下 Linux 的安装

_

    • 添加swap分区

_

Windows 平台下 Linux 的安装

_

    • 添加根分区

_

Windows 平台下 Linux 的安装

_

    • 正确的分区如下图所示

_

Windows 平台下 Linux 的安装

_

    • 点击下一步

_

Windows 平台下 Linux 的安装

_

    • 自定义安装应用程序

_

_

Windows 平台下 Linux 的安装

_

    • 选中这些

_

_

Windows 平台下 Linux 的安装

_

_

      • 基本系统中选择 兼容程序库 和 基本 两项

      • 应用程序中只选择 互联网浏览器

      • 桌面 全选

      • 语言支持选择 中文 即可

    • 安装时间有点长,稍微耐心等待一下

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

_

    • 重新引导

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

_

    • 开机界面

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

_

    • 进入欢迎界面后,点击 前进

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

_

    • 不用做此步操作,我们以后用Linux命令来搞

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

_

    • 使用默认时间即可

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

_

    • 根据自身情况,若用作实际生产环境,则勾选此项;若用作学习,则不用勾选

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

_

    • Successfully

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

_

问题讲解

2

  1. 至此,Linux安装就此结束,来咱们说说刚才遗留下来的问题a,当进行网络适配器选择时候,提供了三个选项: a.桥接模式 b.NAT模式 c.仅主机模式,这三个有什么区别呢?

    :如下图所示

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

_

_

  • 桥接模式:

    在一个教室的局域网之下,假设存在两台电脑,编号分别为1、2,那很简单,1、2处于同一网段之下,假设ip分别为192.168.0.10、192.168.0.20,在1号机器上装了一个Linux的虚拟机,那么如果使用桥接的方式即就是:虚拟机的ip和1、2机器的ip处于同一网段,即三个主机(2台pc,一台上装有)可以互相通信。缺点就是:不能在这个局域网之下挂载超过233台设备(无论是装虚拟机还是实体设备),为什么是233呢?因为255-1-1(减去网关地址192.168.1.1和广播地址192.168.1.255),就会出现ip地址不够用的尴尬情况。

  • NAT模式(推荐 : 假设有两台电脑,一台是我的一号女朋友的,另一台是我的二号女朋友的,二号的电脑上装了一个Linux虚拟OS,并且我两个女朋友的电脑处于同一局域网下,与桥接不同的是:二号女朋友的电脑上的windows系统具有两个ip,一个和是当前局域网处于同一网段,另一个是与2号电脑上的Linux系统处于相同网段的另一个局域网ip,即在NAT模式下,Linux的ip会和Windows的一个ip组成一个网络环境,那么当我两个女朋友所处局域网下的其他主机去访问2号女朋友的Linux时就会出现访问不到的情况,而通过2号女朋友的Linux去访问其他主机,它会将Windows的另一个ip作为代理去访问,因此可以访问该局域网下的用户也可访问外网,巧妙的化解了ip冲突的尴尬,因此通常推荐NAT模式。

  • 仅主机模式 : 具有独立Ip 不能访问外网

    2. 虚拟机资源的分配: 

    : 虚拟机资源的分配依赖于母机的资源情况,我的本机上有四个cpu:

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

_

实际开发中的情况

3

在实际应用中,我们会将Linux远程安装在服务器上,通过远程控制的方式来进行操作,远程的服务器不用装图形界面,通过命令行来操控,这里介绍一个工具Xshell,通过此工具可以进行很好很方便的操作(有关远程操作的问题大家可以参考我的一篇博文

地址

http://www.shipudong.com/2019/04/19/yuan-cheng-kong-zhi/

web下腾讯云服务器的控制界面:

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装Windows 平台下 Linux 的安装Windows 平台下 Linux 的安装后台回复Linux获取尚硅谷_韩顺平_Linux教程

Windows 平台下 Linux 的安装

_

THE

END

延伸阅读

_

_

_

REC

_

Windows 平台下 Linux 的安装

Windows 平台下 Linux 的安装

_

_

_

Windows 平台下 Linux 的安装 点一下阅读原文了解更多资讯

Windows 平台下 Linux 的安装

我知道你在看

Windows 平台下 Linux 的安装

相关文章: