这是一篇闲来无事手把手教你安装Linux操作系统的文章,因为是手把手教你,所以文章会比较长,可以耐心看一看....
一、Linux介绍
1、计算机资源
硬件资源:能看得见,能摸得着的就是硬件资源。
软件资源:能看得见,但摸不着的就是软件资源。
硬件资源可以操作软件资源,软件资源可以操作硬件资源。他们共同的桥梁就是操作系统。
2、操作系统类别
Windows:微软,闭源,收费
MAC:苹果,闭源,收费
Unix:属于大公司的,闭源,收费
Linux:全人类的,开源,免费
其它操作:iOS、Android、Chrome OS
3、GNU/Linux特点
开放性
多用户(服务器操作系统都具有这个特性)
多任务
良好的用户界面
4、Linux含义
狭义的Linux:是指linus开发的内核的部分,现在占Linux系统3%不到。
广义的Linux:是指linux厂商基于linux内核开发的产品。(红帽)
5、Linux主要产品
主要发行版:
1、Red Hat Linux(红帽Red Hat,centos)
2、SuSE Linux(德国linux)
3、Debian Linux(演示版,界面华丽。)
4、Ubuntu Linux(基于debian开发的。界面华丽。个人机很多都选择,软件支持度好。)
5、红旗 Linux(国产的。)
二、虚拟机
1、什么是虚拟机

说明:虚拟机软件是可以模拟计算机硬件的,模拟出来的硬件,就可以组装成一台电脑。在这台电脑里面安装操作系统。
2、有哪些虚拟机软件
VirtualBox:免费,开源
VMWare:收费,闭源
三、安装VMWare
从网上自行搜索VMWare下载:
算了,我还是把自己的传给你们把,有需要自己下载:
链接:https://pan.baidu.com/s/18DELOCW7Cw0iex5tu_9Crw 密码:0skc

1)右键-》管理员运行

2)欢迎页面:

3)同意协议

4)安装软件的位置

5)快捷方式:

6)安装

注意:有各种驱动要安装,一定一定要点击安装。
7)许可:

8)输入:

可以照抄上面的密钥(网上也有很多关于VMware的密钥)
9)完成:

四、创建虚拟机
1)右键->管理员方式运行

2)创建新的虚拟机:

3)选择兼容

4)稍后安装

5)选择系统:

6)安放位置

7)选择cpu

8)购买内存:

电脑内存是大于或者等于4G的,选择1024M;小于4G的选择768M
9)选择网卡连接方式:

10)控制器

11)硬盘连接主板的时候

12)选择硬盘:

13)选择硬盘的大小:

14)硬盘存储的位置:放在电脑里面!

15)完成

完成后的界面

五、准备好操作系统
已经准备好的操作系统:
下载地址(本来想上传的,一看3个G,罢了```你们自行百度下载吧);

说明:
i386其实就是32位的。x86表示的是32位的
x86_64就是64位的,64表示是64位。
32位与64位的区分:
cpu构架是不一样。现在的cpu都是64位,兼容32位。
现在我们使用电脑,一定要使用64位的操作系统。
64位操作的软件,很多是不支持32位的,特别是在Linux.
在linux上面,很多时候,你要下载的软件,必需是区分32位还是64位。
6、配置虚拟机
把32位的操作,放在电脑里面。进行安装。


开启:

开机之前,有可能有问题:
当你的主板不支持的时候,要报错的。报错的时候,主板(BIOS)上面开启虚拟支持。
网卡:

六、CentOS
1、安装系统
1)开启虚拟机

2)系统启用说明

3)检查光盘

4)硬盘检查:

5)欢迎页面:

6)选择语言

7)选择键盘

8)选择基本:

9)忽略数据

10)选择网络配置

11)配置

12)选择时区

13)设置root账户的密码

14)选择自定义

15)分区准备:

16)分区说明:
win上面的分区,最少有一个分区!
linux上面至少有二个分区:swap(交换分区),根分区
一般情况下,分成三个分区:swap(交换分区),根分区,boot分区
说明:
#####boot分区
是linux的内核,单独的分在一个分区里面。其它分区坏了,不影响系统。系统可以启动。
#####swap(交换分区)
是内存在不够使用的时候,会把内存里面的数据,不经常使用的数据移动到交换分区。当要使用的时候,才从交换分区里面拿出来到内存。
交换分区设置的大小,应该是内存的1半或者是1倍
#####根分区:包含所有目录的分区
每一个分区都有一个盘符:要访问的时候,通过盘符就可以直接访问了。
D:/www/html
###目录名一定不要有中文!
访问:linux的访问必需从根开始
访问boot分区:/boot
访问html分区:/var/html
17)实现
swap分区:

boot分区:

说明:文件系统类型:
ext4是比较新的文件系统,这个文件系统,就是管理硬盘上面的文件的方式。这个管理可以支持大文件,访问速度比ext3快很多。
根分区:

18)分区完成,下一步:

19)格式化

20)写入修改

21)下一步

22)选择安装的软件

23)选择安装软件


!选择安装的软件.png](https://img.haomeiwen.com/i10881829/8818e8c613d41760.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)



24)软件已经选择成功,点击下一步:

25)安装完成,重新引导

26)欢迎页面

27)许可信息

28)创建用户

29)密码设置

我设的密码太简单了。因为我是随便安装着玩,所有设置简单。
工作中的密码,应该有强度。分成四个维度
数字
小写字母
大写字母
特殊符号
#####设置密码的时候,最少是三个维度!
30)设置时间

31)错误提示(不用理会,直接确定)

32)说明

如果内存大于2G,这个会自动开启!!
33)安装完成



七、CentOS使用细节
1、正确对待你的Linux操作系统
关机的时候!

文件内容:

如果你不知道里面的东西是什么玩意儿,就最好不要去动,也不要去删除,因为这里面的东西都是非常重要的东西,安装了这么久,不要作死```
注意:
Linux:一切皆文件
Linux:严格区分大小写
Linux:没有消息,就是最好的消息
计算机界:有可能发生的,一定会发生!
2、Linux中的文件系统

3、文件系统详解
/bin:系统指令目录(普通用户与超级用户都可以使用)
/boot:内核文件
/dev:系统设备目录(不可以访问系统硬件)
/etc:配置文件
/home:家目录(普通用户)
/lib:共享连接库文件
/lost+found:系统有突发情况时,文件存放处
/media:挂载设备的目录(DVD,硬盘)
/mnt:挂载移动设备的目录(U盘)
/opt:第三方程序目录
/proc:内核运行时产生文件
/root:家目录(root)
/sbin:超级指令目录(只有超级用户才可以使用)
/tmp:临时文件(自动清空机制)
/usr:文件系统,程序的默认安装目录
/var:运行时要改变的数据文件
网友评论