美文网首页
Elasticsearch安装启动

Elasticsearch安装启动

作者: ITriangle | 来源:发表于2016-09-22 10:15 被阅读0次

系统环境

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"
}

相关文章

网友评论

      本文标题:Elasticsearch安装启动

      本文链接:https://www.haomeiwen.com/subject/rikzettx.html