江湖开发者 | Java粉
网站地图
首页> 大数据> Elasticsearch安装和Elasticsearch head插件
2016
05-31

Elasticsearch安装和Elasticsearch head插件

Elasticsearch安装和Elasticsearch head插件


Elasticsearch安装

1.需要jdk版本1.7及以上

2.直接解压即可.

3.启动 ./elasticsearch  前台启动

      ./elasticsearch -d 为后台启动

      启动日志:

[WARN ][bootstrap                ] jvm uses the client vm, make sure to run `java` with the server vm for best performance by adding `-server` to the command line

[WARN ][bootstrap                ] unable to install syscall filter: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER compiled in

[INFO ][node                     ] [Necrodamus] version[2.3.3], pid[4066], build[218bdf1/2016-05-17T15:40:04Z]

[INFO ][node                     ] [Necrodamus] initializing ...

[INFO ][plugins                  ] [Necrodamus] modules [lang-groovy, reindex, lang-expression], plugins [head], sites [head]

[INFO ][env                      ] [Necrodamus] using [1] data paths, mounts [[/ (/dev/mapper/VolGroup00-LogVol00)]], net usable_space [5.4gb], net total_space [9.6gb], spins? [possibly], types [ext3]

[INFO ][env                      ] [Necrodamus] heap size [1017.6mb], compressed ordinary object pointers [unknown]

[WARN ][env                      ] [Necrodamus] max file descriptors [1024] for elasticsearch process likely too low, consider increasing to at least [65536]

[INFO ][node                     ] [Necrodamus] initialized

[INFO ][node                     ] [Necrodamus] starting ...

[INFO ][transport                ] [Necrodamus] publish_address {127.0.0.1:9300}, bound_addresses {[::]:9300}

[INFO ][discovery                ] [Necrodamus] elasticsearch/kl1yd9x_RHmCbRLB012vwg

[INFO ][cluster.service          ] [Necrodamus] new_master {Necrodamus}{kl1yd9x_RHmCbRLB012vwg}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)

[INFO ][gateway                  ] [Necrodamus] recovered [0] indices into cluster_state

[INFO ][http                     ] [Necrodamus] publish_address {127.0.0.1:9200}, bound_addresses {[::]:9200}

[INFO ][node                     ] [Necrodamus] started

4.访问http://127.0.0.1:9200 

            es.png

5.如果需要其它内网机器访问,需要修改config/elasticsearch.yml

>.network.host: 0.0.0.0

head插件安装

        1.http://mobz.github.io/elasticsearch-head/  简介

2.安装执行命令:

    bin目录下 ./plugin -install mobz/elasticsearch-head

3.访问:http://127.0.0.1:9200/_plugin/head/  

         es_head.png

Java江湖     
全部评论:

表情验证码,看不清楚,换一张

随机文章

云标签

公众号

微信

分享:分享我们的知识;专注:专注个人技术的提升;