上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 70 下一页
摘要: 1.redis 主从复制如何实现的? 1.1 连接建立阶段 1.2 数据同步阶段 1.3命令传播阶段 是指将一台Redis服务器的数据,复制到其他的Redis服务器。前者称为主节点(master),后者称为从节点(slave);数据的复制是单向的,只能由主节点到从节点。 需要注意,主从复制的开启,完 阅读全文
posted @ 2020-10-01 22:49 littlevigra 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 1.拨测服务端口 [root@VM_0_111_centos shell]# cat check_http_code1.sh #!/bin/bash while true do cat input1.txt| while read line do return_Code=`$line ;echo $ 阅读全文
posted @ 2020-10-01 16:31 littlevigra 阅读(633) 评论(0) 推荐(0) 编辑
摘要: 1.显示请求使用时间-使用gauge显示每次的请求时间 [root@VM_0_111_centos exporters]# cat request_time.py |egrep -v '^#|^$' import prometheus_client from prometheus_client im 阅读全文
posted @ 2020-09-20 22:28 littlevigra 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 1.编写exporter import prometheus_client from prometheus_client import Gauge,start_http_server,Counter import pycurl import time import threading from io 阅读全文
posted @ 2020-09-19 21:40 littlevigra 阅读(1438) 评论(0) 推荐(0) 编辑
摘要: 0.pushgateway的安装和配置 tar -zxf pushgateway-1.2.0.linux-amd64.tar.gz ./pushgateway & 在Prometheus添加配置 - job_name: 'node_111' static_configs: - targets: [' 阅读全文
posted @ 2020-09-17 22:14 littlevigra 阅读(536) 评论(4) 推荐(0) 编辑
摘要: 1.腾讯云数据库默认大小写不敏感 mysql> show variables like "%case%"; + + + | Variable_name | Value | + + + | lower_case_file_system | ON | | lower_case_table_names | 阅读全文
posted @ 2020-08-27 10:10 littlevigra 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 1.<!--<appender-ref ref="filelog" />--> 2.<appender-ref ref="filelog" /> 1.tomcat项目uri自定义 ls /opt/application/tomcat/campus_machine/conf/Catalina/loca 阅读全文
posted @ 2020-08-26 16:29 littlevigra 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 0.数据抓取的生命周期 1.通过文件发现 - job_name: node file_sd_configs: - targets/nodes/*.json reflesh_interval: 5m 2.添加标签 cat ./node/node.json[{"targets":["10.0.0.111 阅读全文
posted @ 2020-08-23 14:45 littlevigra 阅读(3304) 评论(0) 推荐(0) 编辑
摘要: 1.每10分钟执行一次 */10 * * * * /opt/shell/check_disk.sh 2.脚本内容 for i in `cat /opt/shell/hosts` do # echo $i sys=`ssh $i "df -h |grep '\/$'"` #echo $sys sysc 阅读全文
posted @ 2020-08-22 21:39 littlevigra 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 1.绑定企业微信,扫码系统出现异常 看日志:/data/bkce/logs/open_paas/esb.log https://qyapi.weixin.qq.com/cgi-bin/解析有问题。 阅读全文
posted @ 2020-08-22 11:35 littlevigra 阅读(490) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 70 下一页