首页 > 代码库 > 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.It‘s 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安装部署
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。