05 2018 档案

摘要:elasticsearch随着保存的数据越来越多,磁盘占用越来越大,有必要进行定期自动清理。 直接上脚本 参考:https://www.cnblogs.com/vijayfly/p/6763127.html 阅读全文
posted @ 2018-05-31 14:35 ddif 阅读(589) 评论(0) 推荐(0)
摘要:服务端安装 Elasticsearch和Kibana(需要安装openjdk1.8以上) 安装方法:https://www.elastic.co以Ubuntu为例: elasticsearch配置 cat /etc/elasticsearch/elasticsearch.yml 附件有文件elast 阅读全文
posted @ 2018-05-24 20:54 ddif 阅读(2220) 评论(0) 推荐(0)
摘要:批量杀死MySQL连接 select concat('KILL ',id,';') from information_schema.processlist where Info like 'select%' into outfile '/tmp/a.txt'; select concat('KILL 阅读全文
posted @ 2018-05-17 09:49 ddif 阅读(188) 评论(0) 推荐(0)