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