摘要: 主配置文件:/etc/ansible/ansible.cfg 主机清单文件:/etc/ansible/hosts 主机清单格式示例: [test] # 定义一个test的主机组 10.20.120.[1:255] ansible_ssh_user='root' ansible_ssh_pass='1 阅读全文
posted @ 2022-03-08 22:26 majiajun 阅读(94) 评论(0) 推荐(0)
摘要: zone "anheng.cn" IN { type master; file "lan_anheng.cn.dns";}; rndc addzone epros.dbappsecurity.com.cn IN lan '{type master; file "lan_epros.dbappsecu 阅读全文
posted @ 2022-03-08 16:45 majiajun 阅读(186) 评论(0) 推荐(0)
摘要: DR模式 # LVS端配置 1..LVS准备VIP和路由 ifconfig eth0:0 [VIP地址] broadcast [广播地址] netmask [子网掩码] up # 此语句仅为临时生效,重启后失效,永久生效需写网卡配置文件。 route add -host [VIP地址] dev et 阅读全文
posted @ 2022-03-07 23:35 majiajun 阅读(133) 评论(0) 推荐(0)
摘要: # 使用源码包编译mysql 官网下载源码包:https://dev.mysql.com/downloads/mysql/ yum -y install ncurses ncurses-devel openssl-devel bison gcc gcc-c++ make cmake cmake . 阅读全文
posted @ 2022-02-22 20:32 majiajun 阅读(120) 评论(0) 推荐(0)
摘要: 遇到的坑: 1、健康检测脚本需要赋予可执行权限才会生效 ! Configuration File for keepalived #起始语法global_defs {router_id 1 #设备在组中的标识,设置不一样的即可} vrrp_script chk_prom { #健康检查script " 阅读全文
posted @ 2021-11-10 20:30 majiajun 阅读(42) 评论(0) 推荐(0)
摘要: Prometheus架构图: Prometheus数据存储标准: Prometheus将所有数据存储为时间序列,格式如下: <metric name>{<label name>=<label value>,...} 四种指标类型: counter:递增式计数器 gauge:可以任意变化的数值 His 阅读全文
posted @ 2021-09-05 20:09 majiajun 阅读(133) 评论(0) 推荐(0)
摘要: 执行shell脚本的多种方式: 1.[root@localhost ~]# bash file1 //第一种方式 2.[root@localhost ~]# sh file1 //第二种方式 3.[root@localhost ~]# . file1 //第三种方式 4.[root@localhos 阅读全文
posted @ 2021-08-29 15:55 majiajun 阅读(98) 评论(0) 推荐(0)
摘要: 安装软件包 yum -y install bind //安装bind服务 主配置文件说明 主配置文件路径:/etc/named.conf 配置选项: options { listen-on port 53 { any; }; //监听端口与IP,可填写127.0.0.1或本机实际IP地址。any表示 阅读全文
posted @ 2021-08-27 14:43 majiajun 阅读(200) 评论(0) 推荐(0)