随笔分类 -  linux

摘要:1、安装 官方:https://ansible-cmdb.readthedocs.io/en/latest/ wget https://github.com/fboender/ansible-cmdb/releases/download/1.27/ansible-cmdb-1.27-2.noarch 阅读全文
posted @ 2024-09-24 10:30 sxFu9528 阅读(39) 评论(0) 推荐(0) 编辑
摘要:一、创建目录 mkdir /data 二、环境信息 将sdb做成lvm挂载到/data目录 三、磁盘分区并做成lvm格式 磁盘分区 [root@CMSgeL ~]# fdisk /dev/sdb Welcome to fdisk (util-linux 2.23.2). Changes will r 阅读全文
posted @ 2024-03-14 10:56 sxFu9528 阅读(153) 评论(0) 推荐(0) 编辑
摘要:1、背景 日常巡检发现zk集群宕机,导致现网告警数据异常 2、问题 zookeeper启动报错(Unable to load database on disk) 3、异常 2023-08-08 09:45:48,919 [myid:2] - ERROR [main:QuorumPeer@557] - 阅读全文
posted @ 2023-08-08 10:31 sxFu9528 阅读(627) 评论(0) 推荐(0) 编辑
摘要:一、环境 系统:CentOS Linux release 7.9.2009 (Core) zookeeper:3.6 kafka:kafka_2.13-2.8.0 二、部署 zookeeper部署详见:https://www.cnblogs.com/sxFu/p/16017975.html 下载ka 阅读全文
posted @ 2022-09-14 17:21 sxFu9528 阅读(329) 评论(0) 推荐(0) 编辑
摘要:因为近期公司安全扫描,安扫报告里有rabbitMQ的高危漏洞,公司的环境都在使用,又在护网期间内,只能在本地整个虚机模拟现网环境来进行升级MQ版本,后续在进行版本升级操作。 一、部署 # erlang下载地址: https://github.com/rabbitmq/erlang-rpm/tags? 阅读全文
posted @ 2022-06-23 10:56 sxFu9528 阅读(2226) 评论(0) 推荐(0) 编辑
摘要:一、环境 系统:CentOS Linux release 7.9.2009 (Core) old version: nginx/1.20.1 new version:nginx/1.21.6 升级原因:安全扫描扫出1.20.1版本漏洞 二、准备 1、下载新版本nginx包 nginx包下载地址:ht 阅读全文
posted @ 2022-06-22 10:04 sxFu9528 阅读(4583) 评论(0) 推荐(0) 编辑
摘要:环境 系统:CentOS Linux release 7.9.2009 (Core) mongoDB版本:5.0.9 mongoDB官方下载地址:https://www.mongodb.com/try/download/community 部署 部署目录:/opt/app # 将下载的包上传至/op 阅读全文
posted @ 2022-06-13 16:29 sxFu9528 阅读(288) 评论(0) 推荐(0) 编辑
摘要:起因:安全漏洞扫描 zookeeper 没有设置任何安全验证 环境:System:Centos7 Java:1.8 Zookeeper:3.6 Server.1 192.168.45.243 Server.2 192.168.44.24 Server.3 192.168.44.117 一、zk集群部 阅读全文
posted @ 2022-03-17 16:53 sxFu9528 阅读(1512) 评论(0) 推荐(0) 编辑
摘要:iftop是一款实时流量监控工具,是外置的命令,所以呢我们需要安装一下这个命令。 # 安装依赖包 yum install flex byacc libpcap ncurses ncurses-devel libpcap-devel # 下载iftop wget http://www.ex-parro 阅读全文
posted @ 2022-01-04 10:34 sxFu9528 阅读(93) 评论(0) 推荐(0) 编辑
摘要:1、环境 系统:CentOS Linux release 7.6.1810 jdk:java version "1.8.0_141" zk:apache-zookeeper-3.6.0 部署目录:/opt/app 2、部署 安装zk # 创建实例目录 mkdir -p /opt/app/zookee 阅读全文
posted @ 2021-11-09 14:36 sxFu9528 阅读(259) 评论(0) 推荐(0) 编辑
摘要:1、将jdk包放置/opt/app目录下(根据自己情况)解压 tar -xf jdk-8u141-linux-x64.tar.gz 2、打开/etc/profile文件(普通用户可以在这个文件中配置,$HOME/.bash_profile),在文件末尾添加。 vim /etc/profile # j 阅读全文
posted @ 2021-10-22 17:23 sxFu9528 阅读(371) 评论(0) 推荐(0) 编辑
摘要:1、sed -i ':t;N;s/\n/,/;b t' filename :t 定义label "t" b t 转到label "t" 继续执行 N 先读入一行到sed的模板空间,加个换行符(\n),再向sed模板空间追加下一行(之后sed 对模板空间中的内容执行s/\n/,/替换,并显示替换后的内 阅读全文
posted @ 2021-09-24 16:52 sxFu9528 阅读(870) 评论(0) 推荐(0) 编辑
摘要:1、du命令 -a或-all 显示目录中个别文件的大小 -b或-bytes 显示目录或文件大小时,以byte为单位 -c或--total 除了显示个别目录或文件的大小外,同时也显示所有目录或文件的总和 -D或--dereference-args 显示指定符号连接的源文件大小 -h或--human-r 阅读全文
posted @ 2021-08-27 15:02 sxFu9528 阅读(176) 评论(0) 推荐(0) 编辑
摘要:1、mininet构建虚拟环境 mn --topo=tree,depth=1,fanout=3 --mac 2、h1 ping h6 h1 ping -c 6 h6 3、tcpdump命令 tcpdump [ -DenNqvX ] [ -c count ] [ -F file ] [ -i inte 阅读全文
posted @ 2021-08-17 11:17 sxFu9528 阅读(293) 评论(0) 推荐(0) 编辑
摘要:1、查找文件text中第五行的内容 命令: sed -n '5p' text 2、查找文件text中第五行到第十行的内容 命令: sed -n '5,10p' text 阅读全文
posted @ 2021-08-16 11:50 sxFu9528 阅读(215) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash Green_Success(){ echo ' '; printf '\033[1;32;40m[success] %b\033[0m\n' "$1"; } Yellow_Warnning(){ echo ' '; printf '\033[1;33;40m[warnning 阅读全文
posted @ 2021-08-13 17:06 sxFu9528 阅读(947) 评论(0) 推荐(0) 编辑
摘要:1、源码安装 cd /opt git clone git://github.com/mininet/mininet.git - 选择版本 cd mininet git tag sudo git checkout -b tag_name - 安装Mininet cd /opt/mininet/util 阅读全文
posted @ 2021-08-04 11:42 sxFu9528 阅读(417) 评论(0) 推荐(0) 编辑

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