摘要: input { stdin { } jdbc { type => "user" # 连接的数据库地址和哪一个数据库,指定编码格式,禁用SSL协议,设定自动重连 jdbc_connection_string => "jdbc:mysql://127.0.0.1:3306/userdb?serverTi 阅读全文
posted @ 2021-02-25 17:53 agasha 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 官方客户端api文档 https://www.elastic.co/guide/en/elasticsearch/client/java-rest/7.x/java-rest-high-document-index.html @Slf4j public class EsMain { public s 阅读全文
posted @ 2021-02-04 11:17 agasha 阅读(125) 评论(0) 推荐(0) 编辑
摘要: elk各版本下载地址 https://elasticsearch.cn/download/ 官方操作文档 https://www.elastic.co/guide/en/elasticsearch/reference/7.x/analyzer-anatomy.html 参考博客 https://ww 阅读全文
posted @ 2021-02-04 11:07 agasha 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1. 线程的取消和中断 interrupt() 中断线程,本质是将线程的中断标志位设为true,其他线程向需要中断的线程打个招呼。是否真正进行中断由线程自己决定 isInterrupted() 线程检查自己的中断标志位 静态方法Thread.interrupted() 将中断标志位复位为false 阅读全文
posted @ 2021-01-29 18:05 agasha 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 1. 索引失效 对索引列运算,运算包括(+、-、*、/、!、<>、%、like'%_'(%放在前面) 类型错误,如字段类型为varchar,where条件用number。 对索引应用内部函数,这种情况下应该建立基于函数的索引 如select * from template t where ROUND 阅读全文
posted @ 2021-01-22 19:48 agasha 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 1. key del key exists key expire key seconds pexpire key milliseconds keys * keys ?? keys ??+ keys a* keys *a keys *a* //*任意字符 ?一个字符 persist key //移除过 阅读全文
posted @ 2021-01-21 15:41 agasha 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 1. <=>安全等于 用于比较null 两者同为null时才为1 否则0 2.regexp或rlike 正则表达式匹配 3.not或!逻辑非 and或&& 逻辑与 or或|| 逻辑或 xor 逻辑异或 4.&按位与 |按位或 <<按位左移 >>按位右移 5.char_length(str)或CHAR 阅读全文
posted @ 2021-01-12 17:33 agasha 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 显示文件 显示前3行数据 ls -l|head -n 3 显示后3行数据 ls -l|tail -n 3 显示文件内容 tail -n 10 test.log 查询日志尾部最后10行的日志 tail -n +10 test.log 查询10行之后的所有日志 head -n 10 test.log 查 阅读全文
posted @ 2020-12-03 10:50 agasha 阅读(745) 评论(0) 推荐(0) 编辑
摘要: show databases;create database python charset=utf8;show create database python;drop databases python; create table tb_test(id int primary key not null 阅读全文
posted @ 2020-06-22 14:11 agasha 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 0.yum install net-tools 安装网络管理工具 1.安装jdk11 yum search java-11 选择jdk环境安装 yum install 2.安装python yum install python 根据提示选择python36进行安装 yum install pytho 阅读全文
posted @ 2020-06-15 15:53 agasha 阅读(1965) 评论(0) 推荐(0) 编辑