美文网首页
ubuntu 安装elasticsearch

ubuntu 安装elasticsearch

作者: 朝西的生活 | 来源:发表于2018-01-15 10:30 被阅读0次

安装java

es需要java环境,ubuntu系统安装java jdk参考ubuntu安装openjdk8

下载es

目前es版本为: 6.1.1

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.1.1.deb

安装

sudo dpkg -i elasticsearch-6.1.1.deb

启动

sudo systemctl enable elasticsearch.service

测试

➜  ~ curl http://localhost:9200/
{
  "name" : "HfgBlNO",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "SVd8wvzNTkq0OPlgTbAP4A",
  "version" : {
    "number" : "6.1.1",
    "build_hash" : "bd92e7f",
    "build_date" : "2017-12-17T20:23:25.338Z",
    "build_snapshot" : false,
    "lucene_version" : "7.1.0",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}

相关文章

网友评论

      本文标题:ubuntu 安装elasticsearch

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