<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[weixin_53979929的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/weixin_53979929</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; weixin_53979929]]></copyright><item><title><![CDATA[shell练习四]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/121056655</link><guid>https://blog.csdn.net/weixin_53979929/article/details/121056655</guid><author>weixin_53979929</author><pubDate>Sat, 30 Oct 2021 21:14:01 +0800</pubDate><description><![CDATA[1. 使用case实现成绩优良中差的判断
#!/bin/bash
  
read -p "请输入你的（1-100）：" grade
case "$grade" in
  8[5-9] | 9[0-9] | 100)
        echo "A"
  ;;
  7[0-9] | 8[0-4])
        echo "B"
  ;;
  6[0-9])
        echo "C"
  ;;
  *)
        echo "D"
esac


2. for创建20用户 用户前缀由用户输入 用]]></description><category></category></item><item><title><![CDATA[shell判断多单分支]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/121020628</link><guid>https://blog.csdn.net/weixin_53979929/article/details/121020628</guid><author>weixin_53979929</author><pubDate>Thu, 28 Oct 2021 18:50:35 +0800</pubDate><description><![CDATA[1、ping主机测试
2、判断一个用户是否存在
3、判断当前内核主版本是否为3，且次版本是否大于10
4、判断vsftpd软件包是否安装，如果没有则自动安装
5、判断httpd是否运行 6、判断指定的主机是否能ping通，必须使用$1变量
7、报警脚本，要求如下： 根分区剩余空间小于20% 内存已用空间大于80% 向用户alice发送告警邮件 配合crond每5分钟检查一次
[root@locaklhost ～]# echo “邮件正文” | mail -s “邮件主题” alice 8、判断用户输入的是.]]></description><category></category></item><item><title><![CDATA[shell入门练习]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/121007275</link><guid>https://blog.csdn.net/weixin_53979929/article/details/121007275</guid><author>weixin_53979929</author><pubDate>Thu, 28 Oct 2021 09:31:13 +0800</pubDate><description><![CDATA[1、取出/etc/inittab文件的第6行；
2、取出当前系统上所有用户的shell，要求，每种shell只显示一次，并且按顺序进行显示； 使用cut、sort结合管道实现
3、如果/var/log/messages文件的行数大于100，就显示好大的文件
4、显示/etc目录下所有以pa开头的文件，并统计其个数 5、如果用户hadoop不存在就添加，否则显示用户已存在
6、编写一个 Shell程序 test1，程序执行时从键盘读入一个目录名，然后 显示这个目录下所有文件的信息
7、编写一个 Shell .]]></description><category></category></item><item><title><![CDATA[shell入门]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/120958738</link><guid>https://blog.csdn.net/weixin_53979929/article/details/120958738</guid><author>weixin_53979929</author><pubDate>Mon, 25 Oct 2021 19:51:07 +0800</pubDate><description><![CDATA[1、安装JDK及配置环境变量。
2、Shell脚本中，$0  $1  $$  $*  $?分别代表了什么意思？
3、写一个脚本：显示出当前的脚本文件名和当前的系统时间。
4、已知目录/scripts目录，执行batch.sh脚本，实现在/scripts目录下创建一个one.txt,在one.txt文件中增加内容“Hello
Shell”。

一、安装JDK及配置环境变量。


mkdir -p /home/local/java


cd /home/local/java
3.通过rz命令或xftp将下载的.]]></description><category></category></item><item><title><![CDATA[MGRE环境下的OSPF综合实验]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/120622971</link><guid>https://blog.csdn.net/weixin_53979929/article/details/120622971</guid><author>weixin_53979929</author><pubDate>Wed, 06 Oct 2021 11:38:06 +0800</pubDate><description><![CDATA[1, R6为ISP只能配置Ip地址，R1- R5的环回为私有网段，
2, R1/4/5为全连的MGRE结构，R1/2/3为星 型的拓扑结构，R1为中心站点
3,所有私有网段可以互相通讯，私有网段使用OSPF完成。
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip add 16.0.0.1 24
[r1-GigabitEthernet0/0/0]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip add 116.0.0.1 24
[r1-Gi.]]></description><category></category></item><item><title><![CDATA[RIP综合实验]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/120474941</link><guid>https://blog.csdn.net/weixin_53979929/article/details/120474941</guid><author>weixin_53979929</author><pubDate>Sat, 25 Sep 2021 17:56:09 +0800</pubDate><description><![CDATA[需求: R1-R2- R3-R4- R5运行RIPV2
R6- R7运行RIPV1
1使用合理IP地址规划网络，各自创建环回接口
2. R1创建环回172.16.1.1/24 172.16.2.1/24 172.16.3.1/24
3要求3使用82访间R1环回
4.减少路由条目数量，增加路由传递安全性
5. RS创建一个环回模拟运营商， 不能宣告
6. R1 telneta R2环回实际telnet到R7.上，
7, R6-R7路由器不能学习到达R环回路由
8,全网可达
R1:
[r1]int g 0/0.]]></description><category></category></item><item><title><![CDATA[静态路由综合实验]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/120427565</link><guid>https://blog.csdn.net/weixin_53979929/article/details/120427565</guid><author>weixin_53979929</author><pubDate>Thu, 23 Sep 2021 08:53:57 +0800</pubDate><description><![CDATA[1 R6为isp,接口IP地址均为公有地址;该设备只能配置Ip地址，之后不能再对其进行其他任何配置;
2 R1-R5为 局域网，私有P地址192.168.1.0/24.请合理分配;
3 R1, R2, R4,各有两个环回地址; R5; R6各有 一个环回地址;所有路由器上环回均代表连接用户的接口 ;
4 R3下的两台PC通过DNHCP自动获取p地址;
5选路最佳，路由表尽量小，避免环路;
6 R1-R5均可以访问R6的环回:
7 R6teInetR5 的公有IP地址时，实际登陆到R1上，
8 R4与R5正.]]></description><category></category></item><item><title><![CDATA[OSPF动态路由协议实验]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/120273757</link><guid>https://blog.csdn.net/weixin_53979929/article/details/120273757</guid><author>weixin_53979929</author><pubDate>Mon, 13 Sep 2021 19:44:47 +0800</pubDate><description><![CDATA[标题
题目
1．R1-3为区域0，R3到R4为区域0，其中R3的环回也在区域1
2．R1， 2也有环回，R1-3 R3为DR设备，没有BDR
3．R4环回地址已固定，其他所有网段使用192.168.1.0/24进行合理分配
4．R4环回不能宣告，全网可达，保障更新安全，避免环路，减少路由条目数量
思路：
1.配置环回地址和网关
2.激活动态路由协议OSPF，并宣告路由所属区域（查看邻居表确认）
3.配置DR，通过设置优先级实现，（测试：r1:Ping 4.4.4.4）
4.R4强制下发缺省路由给area0.]]></description><category></category></item><item><title><![CDATA[配置静态路由]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/120246413</link><guid>https://blog.csdn.net/weixin_53979929/article/details/120246413</guid><author>weixin_53979929</author><pubDate>Sun, 12 Sep 2021 08:28:54 +0800</pubDate><description><![CDATA[1、除R5的环回地址固定以外，整个其他所有网段基于192.168.1.0/24进行合理的IP地址划分
2、 R1-R4每个路由器存在两个环回接口，用于模拟连接PC网段;地址也在192.168.1.0/24这个网络范围内
3、 R1-R4.上不能直接编写到达5.5.5.0/24的静态路由，但依然可以访问
4、全网可达，尽量减少每台路由器，路由表条目数量，避免环路出现5
5、R4与R5间，正常1000M链路通信，故障时自动改为100M
192.168.1.0/24 划分子网，划分广播域，给广播域一个网段，每个.]]></description><category></category></item><item><title><![CDATA[IP、 TCP、 UDP协议]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/120200759</link><guid>https://blog.csdn.net/weixin_53979929/article/details/120200759</guid><author>weixin_53979929</author><pubDate>Thu, 09 Sep 2021 14:56:35 +0800</pubDate><description><![CDATA[PDU ------ 协议数据单元
每进入一层，数据在各个层如何叫   单位
OSI里面：  L  level

TCP/IP里面：

封装和解封装
封装：数据在每一层把自己最重要的数据添加到数据包，添加过程就叫封装
解封装：拆开看自己需要的信息
应用层 要封装，取决于不同的服务
传输层：端口号封装到数据中   干这件事情的是这层的协议
网络层：IP地址封装到数据中  IP协议
数据链路层 ：MAC地址封装到数据中 ----- 以太网
物理层：不用封装
以太网是早期局域网的解决方案，主要依赖mac地址进行.]]></description><category></category></item><item><title><![CDATA[IP地址分类和数据包传输过程用到的协议]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/120162528</link><guid>https://blog.csdn.net/weixin_53979929/article/details/120162528</guid><author>weixin_53979929</author><pubDate>Tue, 07 Sep 2021 18:17:11 +0800</pubDate><description><![CDATA[ip地址分类

单播地址
A 0XXX XXXX  0-127  1-126
B10XX XXXX  128 - 191
C110X XXXX  192 - 223
组播地址
D1110 XXXX  224 - 255
私有地址
E1111 XXXX 240 - 255
在这里插入图片描述


单播地址：一对一传输的地址  需要源目地址   既可以作为源ip 也可作为目标ip
组播：逻辑上划分到一起，会用到路由器，单播和广播的组合，缺点：提前配置组播环境hmp协议（了解）
广播：实际范围在一起有范围要求
要]]></description><category></category></item><item><title><![CDATA[搭建互联网]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/120150805</link><guid>https://blog.csdn.net/weixin_53979929/article/details/120150805</guid><author>weixin_53979929</author><pubDate>Tue, 07 Sep 2021 11:05:17 +0800</pubDate><description><![CDATA[互联网，如何描述互联网
什么是互联网：
从属性，名字，组成，作用可以干什么的角度

数据永远存储在硬件设备
分布式—把所有计算机处理能力结合在一起
dos攻击：拒绝服务攻击，占用带宽数据资源，导致无法提供服务
dos攻击服务器的成功率低，ddos分布式拒绝服务：一台不成功就多台进行攻击

计算机技术–数据如何在节点中传递？
CPU只能处理电信号
抽象语言—电信号（抽象）—数据（具体人类可识别）
场景：实现1+2:
程序入参，加入程序，计算器软件程序
编译（转换为机器语言）转换成编码
编码转化为二进制（编码表]]></description><category></category></item><item><title><![CDATA[软硬链接的区别]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/119763341</link><guid>https://blog.csdn.net/weixin_53979929/article/details/119763341</guid><author>weixin_53979929</author><pubDate>Tue, 17 Aug 2021 18:43:02 +0800</pubDate><description><![CDATA[一、创建方法
命令格式：

ln [选项] 源文件 目标文件
选项：
-s：建立软链接文件。如果不加 “-s” 选项，则建立硬链接文件；
软链接的删除  在软连接的对象是目录下，切记不要自动补全删除，如果是rm -rf test/ 那么原目录下的文件都会被删除！！！
rm -rf test  #切记不要自动补全
二、软硬链接概念理解：
一句话概括就是：软链接用windows中的概念来理解就相当于一个快捷方式；而硬链接实际上是文件的一个别名
，硬链接指向的内容和原文件名所指向的是同一片硬盘空间软硬链接的理解
]]></description><category></category></item><item><title><![CDATA[配置yum源仓库和rpm]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/119758091</link><guid>https://blog.csdn.net/weixin_53979929/article/details/119758091</guid><author>weixin_53979929</author><pubDate>Tue, 17 Aug 2021 15:33:14 +0800</pubDate><description><![CDATA[配置yum源仓库


]]></description><category></category></item><item><title><![CDATA[域名访问网站]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/119755006</link><guid>https://blog.csdn.net/weixin_53979929/article/details/119755006</guid><author>weixin_53979929</author><pubDate>Tue, 17 Aug 2021 14:01:31 +0800</pubDate><description><![CDATA[1、搭建web服务器，能够访问到网页内容为“小胖子，你咋这么胖！”

开启httpd服务    systemctl start httpd
cd /var/www/html
vim index.html


二、搭建web服务器，创建基于域名的虚拟机，能够使用www.xiaopang.com和www.dapang.com访问各自的网站，网站存放路径分别为/xiaopang和/dapang 内容自定
1. 搭建web服务器，
装包  yum install httpd
停止firewalld 和 selinu]]></description><category></category></item><item><title><![CDATA[cat、find、grep、sort、tr、wc、locate、uniq]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/119537875</link><guid>https://blog.csdn.net/weixin_53979929/article/details/119537875</guid><author>weixin_53979929</author><pubDate>Mon, 09 Aug 2021 14:55:12 +0800</pubDate><description><![CDATA[]]></description><category></category></item><item><title><![CDATA[Linux输入输出重定向]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/119493583</link><guid>https://blog.csdn.net/weixin_53979929/article/details/119493583</guid><author>weixin_53979929</author><pubDate>Sat, 07 Aug 2021 22:13:25 +0800</pubDate><description><![CDATA[1.使用两种方式创建文本文件text1.txt, text2.txt


   a.使用Vim在文件text1.txt中写入
     Welcome to my Linux.
  You are the best.
     This is my first file to create on linux




 b.在命令模式下，复制第二行，并粘贴到第三行下边


 c.在命令模式下，先跳转文件的末尾行，然后跳转到文件的首行


 d.删除第二行


...]]></description><category></category></item><item><title><![CDATA[虚拟机修改root密码]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/119393641</link><guid>https://blog.csdn.net/weixin_53979929/article/details/119393641</guid><author>weixin_53979929</author><pubDate>Wed, 04 Aug 2021 21:31:00 +0800</pubDate><description><![CDATA[虚拟机修改密码
方法一：
第一步：重启，到这个界面键盘 e  进入到Linux行末尾输入 rd.break   最后ctrl+x进入下一步


第二步：ro改成rw

第三步：进入sysroot子系统修改密码

第四步：使操作生效：强制重置文件系统的上下文，最后退出
方法二：
第一步：重启 按e进入界面   把ro改为rw   并在末尾添加init=/bin/sh  最后ctrl+x进入到下一步
第二步：输入命令passwd，按提示修改密码
这步也可以变成 echo “pwd” |  passwd stdi]]></description><category></category></item><item><title><![CDATA[三种工厂模式的区别]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/118419423</link><guid>https://blog.csdn.net/weixin_53979929/article/details/118419423</guid><author>weixin_53979929</author><pubDate>Fri, 02 Jul 2021 18:00:19 +0800</pubDate><description><![CDATA[三种工厂模式的区别


传统方法：准备原材料过程和获取披萨类型都在Order类里面




简单工厂模式：把每种类型的披萨的准备原材料方法封装在工厂类里边，  Order里只负责bake cut box




工厂方法模式:把新增的每种类型的披萨的准备原材料方法放到子工厂；父工厂类就用抽象，让子工厂继承抽象工厂，并负责bake cut box；




抽象工厂模式：把新增的每种类型的披萨的准备原材料方法放到子工厂；父工厂类就用抽象，让子工厂继承抽象工厂，新建order类负责bake cut box，那么]]></description><category></category></item><item><title><![CDATA[抽象工厂模式]]></title><link>https://blog.csdn.net/weixin_53979929/article/details/118420519</link><guid>https://blog.csdn.net/weixin_53979929/article/details/118420519</guid><author>weixin_53979929</author><pubDate>Fri, 02 Jul 2021 17:55:40 +0800</pubDate><description><![CDATA[抽象工厂模式
1. 定义了一个interface用于创建相关或有依赖关系的对象簇，而无需指明具体的类
2. 抽象工厂模式可以将简单工厂模式和工厂方法模式进行整合
3. 从设计层面看，抽象工厂模式就是对简单工厂模式的改进（或者称为进一步抽象）
4. 将工厂抽象成两层，AbsFactory（抽象工厂）和具体实现的工厂子类。程序员可以根据创建对象类型使用对应的工厂子类。这样将单个简单工厂类变成工厂簇，更有利于代码的维护和扩展。**
聚合到客户端
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传]]></description><category></category></item></channel></rss>