elasticsearch-5.4.0 配置与插件 head管理工具

1、配置JAVA环境,最新版curl

.........省略.........elasticsearch

普通用户不生效的话,重启rebootide

2、安装测试

下载zip文件elasticsearch-5.4.0.zipui

unzip elasticsearch-5.4.0.zipurl

cd elasticsearch-5.4.0spa

 

3、启动blog

./bin/elasticsearch -d教程

-d 参数台运行ip

 

4、测试

curl 'http://localhost:9200/'

看到如下信息说明启动成功

{

 "name" : "MkBlpSX",

 "cluster_name" : "elasticsearch",

 "cluster_uuid" : "7OoxnHQgRqmu2p-8VsGlXA",

 "version" : {

   "number" : "5.4.0",

   "build_hash" : "780f8c4",

   "build_date" : "2017-04-28T17:43:27.229Z",

   "build_snapshot" : false,

   "lucene_version" : "6.5.0"

  },

 "tagline" : "You Know, for Search"

}

 

5、客户端测试

显示“没法访问”得需求修改配置文件

vi config/elasticsearch.yml

wKioL1kpQQWiOjc4AABZR8VyVbk634.jpg-wh_50

6、重启服务,出现:

max file descriptors [4096] for elasticsearchprocess likely too low, increase to at least [65536]

解决:

vi /etc/security/limits.conf

添加以下内容:

* soft nofile 65536

* hard nofile 65536

* soft nproc 2048

* hard nproc 4096

 

vi /etc/security/limits.d/20-nproc.conf

 

修改以下内容:

* soft nproc 4096

#修改成

* soft nproc 65536

 

vi /etc/sysctl.conf

添加下面配置:

vm.max_map_count=655360

并执行命令:

sysctl -p

而后,再启动elasticsearch,便可启动成功。

 

再,本地测试与客户端测试:进行对比

curl 'http://localhost:9200'

http://192.168.137.7:9200/

 

7、安装elasticsearch-head

.............待续...........

 

通过几天的测试,网上没有响应的教程,只有零零散散的片断,如下是本人亲测安装过程总结:

http://down.51cto.com/data/2312780

相关文章
相关标签/搜索