Elasticsearch安装与启动

Elasticsearch最新版本是5.4,链接地址:https://www.elastic.co/downloads/elasticsearch

建议下载zip包,直接解压就可以使用了。

xxx@localhost program]$ unzip elasticsearch-5.4.1.zip

$  cd elasticsearch-5.4.1/bin

启动

$  ./elasticsearch

[2017-06-20T23:43:11,651][WARN ][o.e.b.JNANatives         ] unable to install syscall filter: 
java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed

 可能会看到以上的警告信息,不用管,使用最新的linux就不会报这个问题

[2017-06-20T23:43:18,595][INFO ][o.e.c.s.ClusterService   ] [5QlPD77] new_master {5QlPD77}{5QlPD77bQVSVIoe1_OLo5A}{HymcpTCSQqm-BQmRtLTTTA}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2017-06-20T23:43:18,623][INFO ][o.e.h.n.Netty4HttpServerTransport] [5QlPD77] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200}
[2017-06-20T23:43:18,626][INFO ][o.e.n.Node               ] [5QlPD77] started

 看到这个日志就说明启动成功了,也可以通过jps查看

4857 Elasticsearch
4879 Jps
说明启动成功

猜你喜欢

转载自chenqunhui.iteye.com/blog/2380634