随笔分类 - Linux运维
Linux基础运维,高可用运维。
摘要:安装方法跟Centos7无差异。 一、下载安装包镜像 地址:https://mirrors.aliyun.com/centos-vault/centos/8.2.2004/isos/x86_64/?spm=a2c6h.25603864.0.0.1f647af6cvFFgO 二、安装操作系统 安装界面
阅读全文
摘要:参考:https://docs.shanhe.com/v6.1/compute/vm/best-practices/linux/kernel_upgrade/ 需求:内核版本3.10.0 ==> 4.18.0 操作步骤 1、查看当前内核版本 uname -runame -acat /etc/redh
阅读全文
摘要:linux入门积累中。 linux内核升级参考:https://developer.aliyun.com/article/1401571安装包下载:https://mirrors.aliyun.com/linux-kernel/v4.x/?spm=a2c6h.25603864.0.0.1b0a43c
阅读全文
摘要:Typora工具安装 参考:https://blog.csdn.net/qq_61621323/article/details/141036982 1. 下载安装包与工具 Typora 官网地址:https://typora.ioTypora 中文官网地址:https://typoraio.cn 下
阅读全文
摘要:Rockylinux安装部署 1、操作系统引入 2024 年 6 月 30 日,CentOS Linux 7 终止其生命周期(EOL),至此 CentOS 全系列版本也已停止维护,属于 CentOS 的时代彻底终结。CentOS 停止维护后,用户将无法获得包括问题修复和功能更新在内的任何软件维护和支
阅读全文
摘要:一、AWK使用方法 NR - Number of Record - 当前处理的行是第几行(因为awk是流处理工具,一行一行处理的,所以NR在不停的自增1)NF - Number of Fileds - 当前行有多少列数据(这个在每行都会根据设定的分割符重新计算,默认分割符是任意连续的多个空白符) B
阅读全文
摘要:expect是一个自动化交互套件,主要应用于执行命令和程序时,系统以交互形式要求输入指定字符串,实现交互通信。 expect自动交互流程: spawn启动指定进程 expect获取指定关键字 send向指定程序发送指定字符 执行完成退出. 1、安装 [root@1a41vla1870 rpm]# y
阅读全文
摘要:1、Shell脚本参数 echo "$# parameters # 打印参数的数量"echo "$@ # 打印全部参数"echo "$0 # 打印脚本名称" 2、Shel多行注释 2121
阅读全文
摘要:论客户端日志的重要性 参考:https://blog.csdn.net/zunwangtianqian/article/details/82793460 弄了两天,不会看日志搞死人。
阅读全文
摘要:VMware ESXi5.5虚拟机扩展根分区(2019.10.16晚,帮扩展数据库服务器) 环境:CentOS6.5,有逻辑卷,扩展根分区。操作:关闭虚拟机,新增一块50G的硬盘。 fdisk -l /dev/sdbfdisk /dev/sdbmke2fs -t ext4 /dev/sdb1 fdi
阅读全文
摘要:ScureCRT避免多标签 显示,按列展示。 ScureCRT避免多标签。
阅读全文
摘要:1、curl命名 curl -H 'Accept: application/json; indent=4' -u admin:password http://127.0.0.1:8000/users/ curl -X POST -d username=new -d email=new@example
阅读全文
摘要:[root@promethus ffmpeg-3.2.14]# yum install yasm [root@promethus ffmpeg-3.2.14]# ./configure --enable-shared --prefix=/usr/local/ffmpeg[root@promethus
阅读全文
摘要:filebeat-7.2.0服务输出形式 配置参考:https://www.elastic.co/guide/en/beats/filebeat/7.2/configuring-howto-filebeat.html 日志输出:https://www.elastic.co/guide/en/beat
阅读全文
摘要:ELK7.2 服务操作实战演示 安装部署过程就不做阐述,自行部署。 1、主机信息: 客户端:192.168.19.139(system、tomcat日志) ES:192.168.19.138:9200 192.168.19.139:9200 Redis:192.168.19.139:6379 123
阅读全文
摘要:1、安装jdk [root@linux-host1 ~]# tail /etc/profile export JAVA_HOME=/usr/local/jdk1.8.0_161 export PATH=$JAVA_HOME/bin:$PATH [root@linux-host1 ~]# source
阅读全文
摘要:参考:https://yaml.org/ ansible中使用的yaml基本元素 变量 Inventory 条件测试 迭代 playbook的组成结构 Inventory Modules Ad Hoc Commands Playbook: tasks: variable: template: han
阅读全文