CentOS 7.X Linux下安装ElasticSearch 5.x

一、配置JDK环境
参考CentOS Linux 下安装Java来安装JDK

二、下载ElasticSearch

cd /data0/software/
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.0.rpm

三、安装ElasticSearch

rpm -ivh elasticsearch-5.2.0.rpm

四、设置开机自启动

sudo systemctl daemon-reload
sudo systemctl enable elasticsearch.service
sudo systemctl start elasticsearch.service

启动之后,在浏览器输入http://127.0.0.1:9200/如能输出下列信息,即表示安装成功

{
  "name" : "uxWFdUg",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "lv5NW6cvRWKpwpcm0mu8ag",
  "version" : {
    "number" : "5.2.0",
    "build_hash" : "24e05b9",
    "build_date" : "2017-01-24T19:52:35.800Z",
    "build_snapshot" : false,
    "lucene_version" : "6.4.0"
  },
  "tagline" : "You Know, for Search"
}

除非注明,本博客文章均为原创,转载请以链接形式标明本文地址
本文地址: http://blog.cnwyhx.com/centos7-linux-install-elasticsearch5/

Leave a Reply