《Linux就该这么学》第二节课 安装系统及初步了解

@font-face{ font-family:"Times New Roman"; } @font-face{ font-family:"宋体"; } @font-face{ font-family:"Calibri"; } @list l0:level1{ mso-level-number-format:decimal; mso-level-suffix:tab; mso-level-text:"%1."; mso-level-tab-stop:15.6000pt; mso-level-number-position:left; margin-left:0.0000pt; text-indent:0.0000pt; font-family:'Times New Roman';} p.MsoNormal{ mso-style-name:正文; mso-style-parent:""; margin:0pt; margin-bottom:.0001pt; mso-pagination:none; text-align:justify; text-justify:inter-ideograph; font-family:Calibri; mso-fareast-font-family:宋体; mso-bidi-font-family:'Times New Roman'; font-size:10.5000pt; mso-font-kerning:1.0000pt; } span.msoIns{ mso-style-type:export-only; mso-style-name:""; text-decoration:underline; text-underline:single; color:blue; } span.msoDel{ mso-style-type:export-only; mso-style-name:""; text-decoration:line-through; color:red; } @page{mso-page-border-surround-header:no; mso-page-border-surround-footer:no;}@page Section0{ } div.Section0{page:Section0;}html

1.RPM :红帽软件包管理器 RedHand Package Managerlinux

 为了解决源代码安装太难的问题,将源代码和安装规则打包在一块儿,下降安装难度。数据库

2.Yum软件仓库:将大量的RPM集合在一块儿缓存

  yum 命令能够指定安装或移除某个软件,当不须要(安装)某个软件或者服务,能够用yum命令。 @font-face{ font-family:"Times New Roman"; } @font-face{ font-family:"宋体"; } @font-face{ font-family:"Calibri"; } @list l0:level1{ mso-level-start-at:2; mso-level-number-format:decimal; mso-level-suffix:none; mso-level-text:"%1)"; mso-level-tab-stop:none; mso-level-number-position:left; margin-left:7.0000pt;text-indent:0.0000pt;text-indent:0.0000pt; font-family:'Times New Roman';} @list l1:level1{ mso-level-number-format:decimal; mso-level-suffix:tab; mso-level-text:"%1."; mso-level-tab-stop:15.6000pt; mso-level-number-position:left; margin-left:0.0000pt; text-indent:0.0000pt; font-family:'Times New Roman';} @list l2:level1{ mso-level-number-format:decimal; mso-level-suffix:none; mso-level-text:"%1)"; mso-level-tab-stop:none; mso-level-number-position:left; margin-left:7.0000pt;text-indent:0.0000pt;text-indent:0.0000pt; font-family:'Times New Roman';} p.MsoNormal{ mso-style-name:正文; mso-style-parent:""; margin:0pt; margin-bottom:.0001pt; mso-pagination:none; text-align:justify; text-justify:inter-ideograph; font-family:Calibri; mso-fareast-font-family:宋体; mso-bidi-font-family:'Times New Roman'; font-size:10.5000pt; mso-font-kerning:1.0000pt; } p.15{ mso-style-name:第1级无序列表; margin-left:36.9500pt; mso-para-margin-left:2.0000gd; text-indent:-15.9500pt; mso-char-indent-count:-1.5200; mso-pagination:none; text-align:justify; text-justify:inter-ideograph; font-family:Calibri; mso-fareast-font-family:宋体; mso-bidi-font-family:'Times New Roman'; font-size:10.5000pt; } span.msoIns{ mso-style-type:export-only; mso-style-name:""; text-decoration:underline; text-underline:single; color:blue; } span.msoDel{ mso-style-type:export-only; mso-style-name:""; text-decoration:line-through; color:red; } @page{mso-page-border-surround-header:no; mso-page-border-surround-footer:no;}@page Section0{ } div.Section0{page:Section0;}网络

3.systemd 初始化进程架构

3.1.systemd 是服务名称ssh

      systemctl   是服务的配置工具编辑器

3.2 五个重要命令ide

**1)启动服务:**systemctl start +服务名称工具

**  2****)**中止服务:systemctl stop+

3**)**重启服务:systemctl restart+

4**)**查看服务:systemctl status+

5**)**加入服务项:systemctl enable+

1.Shell(终端或壳):服务或者程序

是人与硬件的翻译官,其中Bash解释器是最主流的。

 Bash解释器的四个优势:

1.经过上下方向键来调取过往执行过的Linux****命令;

2.命令或参数仅需输入前几位就能够用Tab****键补全;

**3.**具备强大的批处理脚本;

**4.**具备实用的环境变量功能。

2.Linux的命令结构

** 命令名称 命令参数 命令对象**

1)三者之间必须用空格间隔

2)能够没有命令参数或者命令对象,可是命名名称必须存在。

3)命令参数分长短格式,只有短短格式能够合并并且没有顺序之分

**长格式: man --list  段格式: man -l  **短短合并: man -la   man -al

**          man --all           man -a           ****  man la     man   al**

3.encho   

   用于输出字符串或者变量提取后的值

**  encho +**

4.reboot 重启命令

5.关机命令: poweroff  

shutdown

init o

halt

6.date命令:输出指定格式的时间

  1) 年-月-日 小时:分钟:秒

date “+%Y-%m-%d %H:%M%S”

            2020-2-25 22:15:30

   +加号和“”双引号和百分号%不能少

2)今年的第几天

date “+%j”

3)修改时间 date -s

date  -s “20200215 22:15:30” 必定要区分大小写

@font-face{ font-family:"Times New Roman"; } @font-face{ font-family:"宋体"; } @font-face{ font-family:"Calibri"; } @list l0:level1{ mso-level-number-format:decimal; mso-level-suffix:tab; mso-level-text:"%1."; mso-level-tab-stop:15.6000pt; mso-level-number-position:left; margin-left:0.0000pt; text-indent:0.0000pt; font-family:'Times New Roman';} @list l1:level1{ mso-level-number-format:decimal; mso-level-suffix:none; mso-level-text:"%1)"; mso-level-tab-stop:none; mso-level-number-position:left; margin-left:21.0000pt;text-indent:0.0000pt;text-indent:0.0000pt; font-family:'Times New Roman';} @list l2:level1{ mso-level-start-at:2; mso-level-number-format:decimal; mso-level-suffix:space; mso-level-text:"%1)"; mso-level-tab-stop:none; mso-level-number-position:left; margin-left:14.0000pt;text-indent:0.0000pt;text-indent:0.0000pt; font-family:'Times New Roman';} @list l3:level1{ mso-level-number-format:decimal; mso-level-suffix:none; mso-level-text:"%1)"; mso-level-tab-stop:none; mso-level-number-position:left; margin-left:21.0000pt;text-indent:0.0000pt;text-indent:0.0000pt; font-family:'Times New Roman';} p.MsoNormal{ mso-style-name:正文; mso-style-parent:""; margin:0pt; margin-bottom:.0001pt; mso-pagination:none; text-align:justify; text-justify:inter-ideograph; font-family:Calibri; mso-fareast-font-family:宋体; mso-bidi-font-family:'Times New Roman'; font-size:10.5000pt; mso-font-kerning:1.0000pt; } span.msoIns{ mso-style-type:export-only; mso-style-name:""; text-decoration:underline; text-underline:single; color:blue; } span.msoDel{ mso-style-type:export-only; mso-style-name:""; text-decoration:line-through; color:red; } @page{mso-page-border-surround-header:no; mso-page-border-surround-footer:no;}@page Section0{ } div.Section0{page:Section0;}

1.ps命令

1)查看进程状态

     ps -aux    ps aux

2)系统的5种状态:

   R:正在运行

S:休眠

D:异常不可终端,kill 命令也没法杀死

Z:僵尸(死)

T;中止

2.top命令:动态监视进程,能够发现系统运行状态是否合理

1)load average :CPU负载,最小值为零,最优值为1,大于5系统睡过去了,立刻要崩溃。

2)Kib Mem  物理内存

3)Kib Swap 虚拟内存??

4)Pid 进程号码

@font-face{ font-family:"Times New Roman"; } @font-face{ font-family:"宋体"; } @font-face{ font-family:"Calibri"; } @list l0:level1{ mso-level-number-format:decimal; mso-level-suffix:tab; mso-level-text:"%1."; mso-level-tab-stop:15.6000pt; mso-level-number-position:left; margin-left:0.0000pt; text-indent:0.0000pt; font-family:'Times New Roman';} p.MsoNormal{ mso-style-name:正文; mso-style-parent:""; margin:0pt; margin-bottom:.0001pt; mso-pagination:none; text-align:justify; text-justify:inter-ideograph; font-family:Calibri; mso-fareast-font-family:宋体; mso-bidi-font-family:'Times New Roman'; font-size:10.5000pt; mso-font-kerning:1.0000pt; } span.msoIns{ mso-style-type:export-only; mso-style-name:""; text-decoration:underline; text-underline:single; color:blue; } span.msoDel{ mso-style-type:export-only; mso-style-name:""; text-decoration:line-through; color:red; } @page{mso-page-border-surround-header:no; mso-page-border-surround-footer:no;}@page Section0{ } div.Section0{page:Section0;}

1.pidoff命令:查询进程号码

12.kill/killall命令:终止命令

Kill/killall [进程Pid号]

Systemctl

   快捷键 Ctrl c   快速终止在终端正在运行的命令

《Linux就该这么学》

正文内容:

本书是由全国多名红帽架构师(RHCA)基于最新Linux系统共同编写的高质量Linux技术自学教程,极其适合用于Linux技术入门教程或讲课辅助教材,目前是国内最值得去读的Linux教材,也是最有价值的Linux实验手册。章节包括有:

第0章 我们先来谈谈学习方法和红帽系统。

第1章 部署虚拟环境安装linux系统。

第2章 新手必须掌握的Linux命令。

第3章 管道符、重定向与环境变量。

第4章 Vim编辑器与Shell命令脚本。

第5章 用户身份与文件权限。

第6章 存储结构与磁盘划分。

第7章 使用RAID与LVM磁盘阵列技术。

第8章 Iptables与Firewalld防火墙。

第9章 使用ssh服务管理远程主机。

第10章 使用Apache服务部署静态网站。

第11章 使用Vsftpd服务传输文件。

第12章 使用Samba或NFS实现文件共享。

第13章 使用Bind提供域名解析服务。

第14章 使用DHCP动态管理主机地址。

第15章 使用Postfix与Dovecot部署邮件系统

第16章 使用Squid部署代理缓存服务。

第17章 使用iSCSI服务部署网络存储。

第18章 使用MariaDB数据库管理系统。

第19章 使用PXE+Kickstart部署无人值守安装。

第20章 使用LNMP架构部署动态网站环境。

对Linux感兴趣的必定要加个收藏,在线学习网址是https://www.linuxprobe.com/chapter-00.html

附件:

Linux入门教程https://www.linuxprobe.com/docs/LinuxProbe.pdf

Linux命令大全https://www.linuxcool.com/

第2步:按照如下格式整理好后,发至您报名时联系刘遄老师的QQ号码:

收件人联系电话邮寄地址**(如:刘遄18612985182北京市朝阳区xxxx),中间不要有空格。**

博客网址:

最后一篇宣传贴网址:

相关文章
相关标签/搜索