上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 1. 安装jenkins cat /etc/yum.repos.d/jenkins.repo [jenkins] name=Jenkins baseurl=http://pkg.jenkins.io/redhat gpgcheck=1 yum calen all && yum makecache y 阅读全文
posted @ 2021-08-13 15:01 MlxgzZ 阅读(441) 评论(0) 推荐(0)
摘要: 1. 安装grafana wget https://dl.grafana.com/oss/release/grafana-7.5.7-1.x86_64.rpm rpm -i --nodeps grafana-7.5.7-1.x86_64.rpm 2. 安装zabbix插件 grafana-cli p 阅读全文
posted @ 2021-05-25 16:01 MlxgzZ 阅读(141) 评论(0) 推荐(0)
摘要: - hosts: linux tasks: - name: copy centos 7 zabbix-agent2 copy: src=zabbix-agent2-5.0.11-1.el7.x86_64.rpm dest=/root when: ansible_distribution == "Ce 阅读全文
posted @ 2021-05-21 11:20 MlxgzZ 阅读(398) 评论(0) 推荐(0)
摘要: 1. bash脚本 #!/bin/bash to=$1 subject=$2 text=$3 #此处的 xxxxx 就是刚刚复制存留的 api 接口地址。 curl -i -X POST \ 'https://oapi.dingtalk.com/robot/send?access_token=4d7 阅读全文
posted @ 2021-02-09 16:42 MlxgzZ 阅读(177) 评论(0) 推荐(0)
摘要: https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/1. 安装zabbix5.0 rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noa 阅读全文
posted @ 2021-02-08 15:14 MlxgzZ 阅读(784) 评论(0) 推荐(0)
摘要: #!/bin/bash echo "You are logged in as `whoami`"; if [ `whoami` != root ]; then echo "Must be logged on as root to run this script." exit fi CHECK_DAT 阅读全文
posted @ 2020-11-28 21:15 MlxgzZ 阅读(122) 评论(0) 推荐(0)
摘要: 1. 安装nginx,mysql,php wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo wget http://repo.mysql.com/mysql-community-release- 阅读全文
posted @ 2020-11-23 17:08 MlxgzZ 阅读(182) 评论(0) 推荐(0)
摘要: 数组:统计出现字数 package main import "fmt" func main() { s := [...]string{"Mlxg", "123","Mlxg", "abc" ,"fff" ,"123", "Mlxg", "fff", "abc", "123", "abc", "fff 阅读全文
posted @ 2020-11-17 15:50 MlxgzZ 阅读(946) 评论(0) 推荐(0)
摘要: 线上故障主要会包括cpu、磁盘、内存以及网络问题,大多数故障可能会包含不止一个层面的问题,进行排查时候尽量四个方面依次排查一遍。例如 jstack、jmap 等工具,出问题就是df、free、top 三连,然后依次jstack、jmap,具体问题具体分析。 CPU: 一般来讲我们首先会排查 CPU 阅读全文
posted @ 2020-06-13 16:11 MlxgzZ 阅读(739) 评论(1) 推荐(0)
摘要: 1. 创建docker网络 docker network create --subnet 172.18.0.1/16 test docker network ls 2. 创建两个容器指定docker network docker run -ti --net=test --name test cent 阅读全文
posted @ 2020-05-13 15:58 MlxgzZ 阅读(593) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 12 下一页