软件下载 CDH CM 6.3.1 配套环境 https://www.aliyundrive.com/s/J2shqHXaHSs 环境准备 系统 IP 主机名 centos7.8 192.168.80.240 cm1 centos7.8 192.168.80.241 cm2 centos7.8 19…
Centos7 配置域名解析服务 Bind的配置 配置网卡IP 为 192.168.101.1 vi /etc/sysconfig/network-scripts/ifcfg-eno16777736 重启网卡 IP已经应用上去了 [root@localhost ~]# systemctl resta…
df -Th查看大小 fdisk分区 把刚刚扩容得分区添加到sda3去 重启之后磁盘的分区才会显示出来 大的vg卷叫做 centos
[TOC] 主程序 Node_exporter 单独下载连接 国内前置代理下载且安装一键代码(国内加速,安装路径/usr/local/node_exporter) yum -y install wget && wget http://hk.2331314.xyz:5550/https…
blkid ls -l /dev/disk/by-uuid lsblk -f vol_id /dev/sda
[TOC] 官方网站 https://prometheus.io/download/ 主程序 Prometheus v2.34.0 单独下载连接 国内前置代理下载且安装一键代码(国内加速,安装路径/usr/local/prometheus) yum -y install wget &&…
Webhook 首先申请企业微信,在群组中申请webhook api 创建脚本-任选一种 1.在/etc/ssh/下创建sshrc文件 vi /etc/ssh/sshrc 2.在/etc/profile.d/创建[name].sh vi /etc/profile.d/login.sh 主程序 #!/…
创建目录 演示路径 /root/shell mkdir -p /root/shell touch /root/shell/ipblack.txt #!/bin/bash cat /var/log/secure|awk '/Failed/{print $(NF-3)}'|sort|…
在Linux中crontab最大只支持到1分钟,支持不到秒 crontab */1 * * * * root /xxx/xxx/xxx.sh 15秒运行一次 #!/bin/bash step=15 for ((i=1;i<=4;i++)) do echo "$i" >…
做定时任务的时候,经常会报出这个错误 查看邮件内容 cat /var/spool/mail/root 禁止系统检查邮件 echo "unset MAILCHECK" >> /etc/profile source /etc/profile