01-elasticsearch7

环境

windows10+elasticsearch7+kibana7+filebeat7

Elasticsearch

下载

网址:https://www.elastic.co/

网址:https://www.elastic.co/downloads/

网址:https://www.elastic.co/downloads/elasticsearch

下载:https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.2-windows-x86_64.zip

配置

启动

https://www.elastic.co/downloads/elasticsearch

启动成功

http://localhost:9200/

备注

去除定义的 JAVA_HOME ,使用elasticsearch自带的JDK

rem 去除定义的 JAVA_HOME ,使用elasticsearch自带的JDK

set JAVA_HOME=

其它

官网帮助

https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started.html#getting-started

https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-install.html

https://www.elastic.co/guide/en/elasticsearch/reference/current/zip-windows.html

安装windows服务

安装成windwos服务

elasticsearch-service.bat install

elasticsearch-service.bat start

centos7

问题1:

max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

解决:

切换到root用户

执行命令:

sysctl -w vm.max_map_count=262144

查看结果:

sysctl -a|grep vm.max_map_count

显示:

vm.max_map_count = 262144


上述方法修改之后,如果重启虚拟机将失效,所以:

解决办法:

在   /etc/sysctl.conf文件最后添加一行

vm.max_map_count=262144

即可永久修改

参考:https://www.cnblogs.com/yidiandhappy/p/7714489.html

问题2:

the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured

修改

elasticsearch.yml

取消注释保留一个节点

cluster.initial_master_nodes: ["node-1"]

这个的话,这里的node-1是上面一个默认的记得打开就可以了

重启 正常

参考:https://blog.csdn.net/happyzxs/article/details/89156068

你可能感兴趣的:(01-elasticsearch7)