-当发现如上图无法分配内存错误等,可执行如下操作。(需要在root用户权限下)
vim /etc/security/limits.conf
* soft nofile 65536
* hard nofile 131072
ela soft memlock unlimited
ela hard memlock unlimited
当发现ERROR: [1] bootstrap checks failed错误时,解决方式如下(root用户状态下)
vim /etc/sysctl.conf
vm.max_map_count = 655360 //添加
sysctl -p
切换到ela用户,执行启动程序
[ela@localhost abc]$ cd /opt/elasticsearch-6.3.2/bin/
[ela@localhost bin]$ ./elasticsearch
新建终端,以root用户查看9200端口是否开启
netstat -ntap | grep 9200
tcp6 0 0 :::9200 :::* LISTEN 2095/java
打开浏览器访问验证,出现如下界面即安装成功,访问时记得关闭防火墙!!!
Elasticsearch 教程系列文章:
Linux上安装部署ElasticSearch全程记录 https://www.linuxidc.com/Linux/2015-09/123241.htm
Linux下Elasticsearch 1.7.0安装配置 https://www.linuxidc.com/Linux/2017-05/144215.htm
在Ubuntu 16.04 中安装 Elasticsearch 5.4分析引擎 https://www.linuxidc.com/Linux/2017-07/145588.htm
Elasticsearch1.7升级到2.3实践总结 https://www.linuxidc.com/Linux/2016-11/137282.htm
Ubuntu 14.04中Elasticsearch集群配置 https://www.linuxidc.com/Linux/2017-01/139460.htm
Elasticsearch-5.0.0移植到Ubuntu 16.04 https://www.linuxidc.com/Linux/2017-01/139505.htm
ElasticSearch 5.2.2 集群环境的搭建 https://www.linuxidc.com/Linux/2017-04/143136.htm
Linux下安装搜索引擎Elasticsearch https://www.linuxidc.com/Linux/2017-05/144105.htm
CentOS上安装 ElasticSearch 详解 https://www.linuxidc.com/Linux/2017-05/143766.htm
Elasticsearch5.3安装插件head https://www.linuxidc.com/Linux/2017-09/147008.htm
Linux上安装Elasticsearch https://www.linuxidc.com/Linux/2018-08/153391.htm
ElasticSearch 的详细介绍:请点这里
ElasticSearch 的下载地址:请点这里
Linux公社的RSS地址:https://www.linuxidc.com/rssFeed.aspx