首页 > 代码库 > ElasticSearch安装部署

ElasticSearch安装部署

官网:http://www.elasticsearch.org

下载压缩包,Run bin/elasticsearch on Unix,

or bin/elasticsearch.bat on Windows

 

root@iZ23onhpqvwZ:~/download/elasticsearch-1.4.0/bin# ./elasticsearch[2014-11-13 10:30:09,969][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[2014-11-13 10:30:10,074][INFO ][node                     ] [Thin Man] version[1.4.0], pid[6192], build[bc94bd8/2014-11-05T14:26:12Z][2014-11-13 10:30:10,074][INFO ][node                     ] [Thin Man] initializing ...[2014-11-13 10:30:10,080][INFO ][plugins                  ] [Thin Man] loaded [], sites []Java HotSpot(TM) Client VM warning: You have loaded library /root/download/elasticsearch-1.4.0/lib/sigar/libsigar-x86-linux.so which might have disabled stack guard. The VM will try to fix the stack guard now.Its highly recommended that you fix the library with execstack -c <libfile>, or link it with -z noexecstack.[2014-11-13 10:30:12,997][INFO ][node                     ] [Thin Man] initialized[2014-11-13 10:30:12,997][INFO ][node                     ] [Thin Man] starting ...[2014-11-13 10:30:13,096][INFO ][transport                ] [Thin Man] bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/10.168.75.170:9300]}[2014-11-13 10:30:13,129][INFO ][discovery                ] [Thin Man] elasticsearch/r5aQ91yDTOSr3I1FI8_Piw[2014-11-13 10:30:16,908][INFO ][cluster.service          ] [Thin Man] new_master [Thin Man][r5aQ91yDTOSr3I1FI8_Piw][iZ23onhpqvwZ][inet[/10.168.75.170:9300]], reason: zen-disco-join (elected_as_master)[2014-11-13 10:30:16,946][INFO ][http                     ] [Thin Man] bound_address {inet[/0.0.0.0:9200]}, publish_address {inet[/10.168.75.170:9200]}[2014-11-13 10:30:16,946][INFO ][node                     ] [Thin Man] started[2014-11-13 10:30:16,961][INFO ][gateway                  ] [Thin Man] recovered [0] indices into cluster_state

我的没有这个信息显示:

[INFO ][node                     ] [Lorna Dane] started

如果想后台运行,则执行

./elasticsearch -d

想确认程序是否运行,则运行

lsof -i:9200lsof -i:9300一个是节点对外服务端口,一个是节点间交互端口(如果有集群的话)。


Run curl -X GET http://localhost:9200/

-X 指定协议,get ,post,delete等。 

http://my.oschina.net/qiangzigege/blog/220224

 

ElasticSearch安装部署