摘要: 检查一下 --initial-advertise-peer-urls=https://172.16.16.80:2380 \ --listen-peer-urls=https://172.16.16.80:2380 \ --listen-client-urls=https://172.16.16.8 阅读全文
posted @ 2020-06-19 21:54 niubihahadewo 阅读(1468) 评论(0) 推荐(0)
摘要: 介于网上大多命令已经过期,记录一下近期使用kafka的心得,本次是用的单机的ES连接器和单机模式kafka1.查询消费组 ./kafka-consumer-groups --bootstrap-server ip:9092 --list2.找到组名并查看消费情况./kafka-consumer-gr 阅读全文
posted @ 2020-06-19 10:25 niubihahadewo 阅读(608) 评论(0) 推荐(0)
摘要: cc1: warnings being treated as errorssrc/event/ngx_event_openssl.c: In function ‘ngx_ssl_init’:src/event/ngx_event_openssl.c:112: error: ‘OPENSSL_conf 阅读全文
posted @ 2020-06-17 17:22 niubihahadewo 阅读(2661) 评论(0) 推荐(0)
摘要: SSL_shutdown() failed (SSL: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init) while SSL handshaking 低版本的浏览器访问nginx会报这个错 办法:升级低版本openssl 阅读全文
posted @ 2020-06-09 15:42 niubihahadewo 阅读(5392) 评论(0) 推荐(0)
摘要: es部署 1.下载中心:https://elasticsearch.cn/download/,里面有各个版本的软件。 2.可以下载6的最新版,或者使用7的版本,先看看有哪些改动 3.解压 tar -xvf elasticsearch-6.5.4.tar.gz 4.cd elasticsearch-6 阅读全文
posted @ 2020-01-17 14:26 niubihahadewo 阅读(494) 评论(0) 推荐(0)
摘要: 由于grafana的oracle插件需要付费,所以只能想想办法,于是就用Oracle的数据转到mysql数据库里面。 其实也很简单,需要提前安装好python和oracle数据库驱动cx_oracle 和MySQL 驱动,具体可以自己搜索。 脚本如下 #!/usr/bin/python# -*- c 阅读全文
posted @ 2019-09-01 15:02 niubihahadewo 阅读(763) 评论(0) 推荐(0)
摘要: ./mysqld_exporter: cannot execute binary file 今天安装mysql_exporter 执行后报这个错误,百思不得其解,突然脑子开光,想到是自己下错包了。 https://github.com/prometheus/mysqld_exporter/relea 阅读全文
posted @ 2019-08-13 11:26 niubihahadewo 阅读(2353) 评论(0) 推荐(0)
摘要: 获取系统时间用到data命令 date 发送邮件用的是mail命令,这个需要安装,yum -y intall mail 然后就是用定时任务 crontab 定时发邮件起到定时巡检系统的作用 crontab -e 编辑定时任务 minute:代表一小时内的第几分,范围 0-59。hour:代表一天中的 阅读全文
posted @ 2019-07-28 16:00 niubihahadewo 阅读(405) 评论(0) 推荐(0)
摘要: 地址:https://grokdebug.herokuapp.com/ 1.捞一段nginx的日志 这个是我的nginx日志格式: '$remote_addr [$time_local] "$request" ' '$request_body $status $body_bytes_sent "$h 阅读全文
posted @ 2019-07-22 20:43 niubihahadewo 阅读(1786) 评论(0) 推荐(2)
摘要: Nginx日志的定义: $remote_addr 代理服务器的ip地址 $http_x_forwarded_for 客户端的真实ip,用以记录原有客户端的IP地址和原来客户端的请求的服务器地址。 $remote_user 记录客户端用户名称 $request 记录请求的URL和HTTP协议 $sta 阅读全文
posted @ 2019-07-22 20:24 niubihahadewo 阅读(244) 评论(0) 推荐(0)