上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: set循环遍历删除特定元素 public class Demo { public static void main(String[] args) { Set<Object> obj = new HashSet<Object>(); obj.add("a"); obj.add("b"); obj.ad 阅读全文
posted @ 2020-06-12 14:28 cchilei 阅读(1329) 评论(0) 推荐(1) 编辑
摘要: Elasticsearch6.8.6开启X-PACK服务后,Transport连接方式 转载,请注明出处:https://www.cnblogs.com/cchilei/p/13086160.html pom文件 <repositories> <!-- add the elasticsearch r 阅读全文
posted @ 2020-06-10 16:30 cchilei 阅读(2232) 评论(1) 推荐(2) 编辑
摘要: 转载,请注明出处:https://www.cnblogs.com/cchilei/p/13085842.html 启动ES ./bin/elasticsearch -d 设置ES内置用户及密码 1、先创建keystore文件 ./bin/elasticsearch-keystore create 2 阅读全文
posted @ 2020-06-10 16:02 cchilei 阅读(3727) 评论(0) 推荐(1) 编辑
摘要: 基础类型List排序 //根据字符串长度进行排序 list.sort((a,b) -> b.length() - a.length());//长在前,短在后 list.sort((a,b) -> a.length() - b.length());//短在前,长在后 //对数字进行排序 List<In 阅读全文
posted @ 2020-06-01 14:15 cchilei 阅读(2321) 评论(0) 推荐(1) 编辑
摘要: 目的 一键式配置集群节点间免密码登录 实现 vim ~/nonpassword 脚本内容: #!/bin/sh # all node names NODES=() # all node password PASS=$1 ###### Validation args length nodes_leng 阅读全文
posted @ 2020-06-01 10:08 cchilei 阅读(951) 评论(1) 推荐(1) 编辑
摘要: 转自:http://www.runoob.com/linux/linux-comm-grep.html Linux grep命令用于查找文件里符合条件的字符串。 grep指令用于查找内容包含指定的范本样式的文件,如果发现某文件的内容符合所指定的范本样式,预设grep指令会把含有范本样式的那一列显示出 阅读全文
posted @ 2020-05-26 09:12 cchilei 阅读(2051) 评论(0) 推荐(0) 编辑
摘要: 本文翻译自blog.trifork.com的博文 地址是http://blog.trifork.com/2013/10/24/how to avoid the split brain problem in elasticsearch/ 转自:https://www.cnblogs.com/zhuku 阅读全文
posted @ 2020-05-21 15:30 cchilei 阅读(201) 评论(0) 推荐(1) 编辑
摘要: ```shell//查看防火墙状态systemctl status firewalld//临时关闭systemctl stop firewalld//禁止开机启动systemctl disable firewalldRemoved symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.Removed symlin... 阅读全文
posted @ 2020-05-21 11:50 cchilei 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 重启elasticsearch 设置密码: 阅读全文
posted @ 2020-05-21 10:22 cchilei 阅读(1663) 评论(0) 推荐(0) 编辑
摘要: Java8的List使用: 输出结果 阅读全文
posted @ 2020-05-15 11:22 cchilei 阅读(13511) 评论(2) 推荐(1) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页