系统环境
Centos6.4
安装步骤
- 下载源码包
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.1.tar.gz
- 解压并创建执行链接
tar zxf elasticsearch-1.7.1.tar.gz
sudo ln -s /home/wl/lib/elk/elasticsearch-1.7.1/bin/elasticsearch /usr/bin/elasticsearch
测试
elasticsearch start -d #可以用` -d`参数打入后台运行
curl -X GET http://localhost:9200
出现200返回码表示OK
{
"status" : 200,
"name" : "Wasp",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "1.7.1",
"build_hash" : "b88f43fc40b0bcd7f173a1f9ee2e97816de80b19",
"build_timestamp" : "2015-07-29T09:54:16Z",
"build_snapshot" : false,
"lucene_version" : "4.10.4"
},
"tagline" : "You Know, for Search"
}
网友评论