08 2022 档案

摘要:tcpdump命令行参数介绍: -A 以ASCII格式打印出所有分组,并将链路层的头最小化。 -c 在收到指定的数量的分组后,tcpdump就会停止。 -C 在将一个原始分组写入文件之前,检查文件当前的大小是否超过了参数file_size 中指定的大小。如果超过了指定大小,则关闭当前文件,然后在打开 阅读全文
posted @ 2022-08-29 21:37 LB_运维技术 阅读(165) 评论(0) 推荐(0) 编辑
摘要:外部ntp服务器地址:0.cn.pool.ntp.org 内部ntp服务器地址1:192.168.57.200 内部ntp服务器地址2:192.168.98.32 该服务器地址为:192.168.57.10 本地服务器网段:192.168.57.0 (1)若只有ntpdate无ntp出现,或者什么都 阅读全文
posted @ 2022-08-24 10:41 LB_运维技术 阅读(147) 评论(0) 推荐(0) 编辑
摘要:服务端配置: 1. 安装nfs-utils和rpcbind #yum install nfs-utils rpcbind 2.设置开机启动服务 #chkconfig nfs on #chkconfig rpcbind on 3.启动相关服务 #service rpcbind start #servi 阅读全文
posted @ 2022-08-24 10:35 LB_运维技术 阅读(40) 评论(0) 推荐(0) 编辑
摘要:一、基本环境: Centos7.X Docker Version: 1.13.1 二、kubernetes各组件介绍: etcd保存了整个集群的状态 kube-proxy负责为Service提供cluster内部的服务发现和负载均衡 kubelet负责维护容器的生命周期,同时也负责Volume(CV 阅读全文
posted @ 2022-08-24 10:32 LB_运维技术 阅读(431) 评论(0) 推荐(0) 编辑
摘要:(1)dns配置前备份:/etc/resolv.conf #cp /etc/resolv.conf /etc/resolv.conf.bak (2)编辑主配置文件 #vi /etc/resolv.conf nameserver //定义DNS服务器的IP地址 domain //定义本地域名,doma 阅读全文
posted @ 2022-08-24 10:26 LB_运维技术 阅读(74) 评论(0) 推荐(0) 编辑
摘要:Lvs 简介 LVS 的全称是 Linux virtual server,即 Linux 虚拟服务器。之所以是虚拟服 务器,是因为 LVS 自身是个负载均衡器(director),不直接处理请求,而是将请 求转发至位于它后端真正的服务器 realserver 上。 LVS 是四层(传输层 tcp/u 阅读全文
posted @ 2022-08-24 10:22 LB_运维技术 阅读(907) 评论(0) 推荐(0) 编辑
摘要:[root@libin network-scripts]# cat ifcfg-eth6 DEVICE="eth6" BOOTPROTO="none" HWADDR="81:5B:12:2F:3A:11" #NM_CONTROLLED="yes" ONBOOT="yes" TYPE="Etherne 阅读全文
posted @ 2022-08-24 10:07 LB_运维技术 阅读(286) 评论(0) 推荐(0) 编辑
摘要:Linux 漏洞问题 1、检查登录提示-更改ftp警告Banner [root@localhost libin]# grep ftpd_banne /etc/vsftpd/vsftpd.conf ftpd_banner="Authorized users only. All activity may 阅读全文
posted @ 2022-08-24 09:46 LB_运维技术 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-08-23 20:08 LB_运维技术 阅读(25) 评论(0) 推荐(0) 编辑
摘要:1、Linux 系统查询占用CPU的前十个进程 [root@libin ]# ps aux --sort=pcpu | head -10 2、Linux系统查询可以远程登录的帐号信息 [root@libin ]# awk '/$1|$6/{print $1}' /etc/shadow | awk 阅读全文
posted @ 2022-08-23 11:42 LB_运维技术 阅读(91) 评论(0) 推荐(0) 编辑
摘要:[22:26:42 root@libin3 libin]# cat libin6 rhcsa rhce rhca hcia libin1 hcip libin2 hcie libin3 [22:26:52 root@libin3 libin]# for i in `cat libin6`;do pi 阅读全文
posted @ 2022-08-22 22:32 LB_运维技术 阅读(47) 评论(0) 推荐(0) 编辑
摘要:1、定义剧本(我这里只输出序列号) [root@libin3]# cat libin.yml - hosts: task gather_facts: no tasks: - name: fetch shell: | awk -F ":" '{ print 1,7 }' /etc/passwd | 阅读全文
posted @ 2022-08-21 01:24 LB_运维技术 阅读(22) 评论(0) 推荐(0) 编辑
摘要:case 命令 case语句与if-then-else语句的区别。 例1:if-then-else语句,比较繁琐 [19:37:32 root@libin3 libin]# usermod -G root student [19:22:33 root@libin3 libin]# vim shell 阅读全文
posted @ 2022-08-20 23:25 LB_运维技术 阅读(236) 评论(0) 推荐(0) 编辑
摘要:12.1 使用 if-then 语句 1、第一种if-then 语句 bash shell的if语句会运行if后面的那个命令。如果该命令的退出状态码是0 (该命令成功运行),位于then部分的命令就会被执行。如果该命令的退出状态码是其他值,then部分的命令就不会被执行,bash shell会继续执 阅读全文
posted @ 2022-08-19 19:13 LB_运维技术 阅读(4526) 评论(0) 推荐(0) 编辑
摘要:[root@libin 2022-08-16-ChagePasswd]# cat chagepasswd.yml - hosts: task remote_user: root gather_facts: no tasks: - name: chage passwd1 user: name: 用户名 阅读全文
posted @ 2022-08-17 11:07 LB_运维技术 阅读(27) 评论(0) 推荐(0) 编辑
摘要:前言 1、Grafana 是一个可视化工具,简单点说就是用来展示数据的。它和Zabbix、Prometheus 有本质区别,在于它不能解决监控问题,仅用于展示。也就是说,在监控领域,Grafana 需要配合 Zabbix、Prometheus 等工具一起使用,以获取数据源。 2、Prometheus 阅读全文
posted @ 2022-08-06 21:49 LB_运维技术 阅读(1238) 评论(0) 推荐(0) 编辑
摘要:一、服务器准备 1、配置:centos7 虚拟机一台 配置如下: 2、网络+主机信息+IP地址 (1)网络:使用nat模式 (2)主机信息:#hostname (3)IP地址:#ip addr 3、查看主机的系统版本信息 (1)[root@libin ~]# cat /etc/redhat-rele 阅读全文
posted @ 2022-08-06 21:41 LB_运维技术 阅读(215) 评论(0) 推荐(0) 编辑
摘要:top -b -n1 | head | grep '^%Cpu' | awk '{print (100-86)}' 阅读全文
posted @ 2022-08-05 14:18 LB_运维技术 阅读(61) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示