上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
摘要: 今天mysql看磁盘空间不足,排查出来general_log.csv占了800G 1. 功能如下: 开启general_log,会将所有到达Mysql Server的SQL语句记录。 一般不会开启开功能,因为log的量会非常庞大。 但个别情况下可能会临时的开一会儿general log以供排障使用。 阅读全文
posted @ 2022-11-01 09:59 不会跳舞的胖子 阅读(1695) 评论(0) 推荐(0)
摘要: 早上收到预警,mysql 发生了自动重启,查看mysql.log并没有发现异常,于是查看了一下/var/log/syslog,发现了以下日志 将自动更新服务停止 sudo apt-get remove unattended-upgrades sudo systemctl stop apt-daily 阅读全文
posted @ 2022-10-26 09:52 不会跳舞的胖子 阅读(1296) 评论(0) 推荐(0)
摘要: 参考官方文档:https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu-tarball/ sudo apt-get install libcurl4 openssl liblzma5 tar -zxvf mongod 阅读全文
posted @ 2022-10-14 19:40 不会跳舞的胖子 阅读(82) 评论(0) 推荐(0)
摘要: 参考文档:https://blog.csdn.net/zlt2000/article/details/115291950 一、ETL接口 adapter 的 ETL 接口为:/etl/{type}/{task} 默认web端口为 8081 type 为类型(hbase/es7/rdb) task 为 阅读全文
posted @ 2022-10-10 10:49 不会跳舞的胖子 阅读(1605) 评论(0) 推荐(0)
摘要: 1、mysql查看binlog mysql> show binlog events; #只查看第一个binlog文件的内容 mysql> show binlog events ``in 'mysql-bin.000002'``;#查看指定binlog文件的内容 mysql> show binary 阅读全文
posted @ 2022-10-08 11:15 不会跳舞的胖子 阅读(2588) 评论(0) 推荐(0)
摘要: 创建索引,user为索引名称 PUT http://192.168.0.110:9200/user 查询索引基本信息 GET http://192.168.0.110:9200/user 查询所有索引 GET http://192.168.0.110:9200/_cat/indices? 删除索引 阅读全文
posted @ 2022-10-07 23:15 不会跳舞的胖子 阅读(186) 评论(0) 推荐(0)
摘要: find . -type f -name *.log -mtime + -exec rm {} \; 阅读全文
posted @ 2022-09-30 10:56 不会跳舞的胖子 阅读(385) 评论(0) 推荐(0)
摘要: mysql> select version(); + + | version() | + + | 8.0.22 | + + 1 row in set (0.01 sec) mysql> show variables like '%expire%'; + + + | Variable_name | V 阅读全文
posted @ 2022-09-26 09:31 不会跳舞的胖子 阅读(1378) 评论(0) 推荐(0)
摘要: 检查当前 ~# echo $LANG en_US.UTF-8 安装中文包 yum search Chinese vim /etc/locale.conf LANG=zh_CN.UTF-8 source /etc/locale.conf 阅读全文
posted @ 2022-09-26 09:23 不会跳舞的胖子 阅读(42) 评论(0) 推荐(0)
摘要: 全量同步报错 {"succeeded":false,"resultMessage":"导入ES 数据:0 条","errorMessage":"topicanalysismsg etl failed! ==>cannot write xcontent for unknown value of typ 阅读全文
posted @ 2022-09-16 15:00 不会跳舞的胖子 阅读(1727) 评论(0) 推荐(0)
摘要: # 第06章_多表查询 /* SELECT ...,....,.... FROM .... WHERE .... AND / OR / NOT.... ORDER BY .... (ASC/DESC),....,... LIMIT ...,... */ #1. 熟悉常见的几个表 DESC emplo 阅读全文
posted @ 2022-09-13 21:28 不会跳舞的胖子 阅读(516) 评论(0) 推荐(0)
摘要: #第05章_排序与分页 #1. 排序 # 如果没有使用排序操作,默认情况下查询返回的数据是按照添加数据的顺序显示的。 SELECT * FROM employees; # 1.1 基本使用 # 使用 ORDER BY 对查询到的数据进行排序操作。 # 升序:ASC (ascend) 默认方式 # 降 阅读全文
posted @ 2022-09-13 21:27 不会跳舞的胖子 阅读(145) 评论(0) 推荐(0)
摘要: UserParameter=mongo.service,ps -ef |grep mongo |grep -v grep |wc -l echo "rs.status()" |mongo 127.0.0.1:27017 | grep "_id" |wc -l UserParameter=mongo. 阅读全文
posted @ 2022-09-08 15:31 不会跳舞的胖子 阅读(138) 评论(0) 推荐(0)
摘要: 28 uname -a 29 cat /etc/redhat-release 30 rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org 31 rpm -Uvh http://www.elrepo.org/elrepo-release- 阅读全文
posted @ 2022-09-07 12:45 不会跳舞的胖子 阅读(61) 评论(0) 推荐(0)
摘要: python -W ignore file.py 阅读全文
posted @ 2022-09-06 13:54 不会跳舞的胖子 阅读(52) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页