linux 下安装 elasticsearch 1.7.1

1.安装elasicsearch 之前 首先需要安装jdk,版本在1.8+,(因为es是基于luence 的)可参考之前的文章进行安装。

2.下载安装

# cd /usr
# wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.1.tar.gz 
# tar zxvf elasticsearch-1.7.1.tar.gz
# cd elasticsearch-1.7.1

3.启动

cd /usr/elasticsearch-1.7.1/bin
./elasticsearch -d 
4.在浏览器 输入 http://xxxx:9200 (xxxx代表服务器ip)会输出相关信息

{
  "name" : "ggTAI6R",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "UB9ablF4TbuW9JrJjyr9zw",
  "version" : {
    "number" : "5.6.3",
    "build_hash" : "1a2f265",
    "build_date" : "2017-10-06T20:33:39.012Z",
    "build_snapshot" : false,
    "lucene_version" : "6.6.1"
  },
  "tagline" : "You Know, for Search"
}
5.安装head插件  head 插件托管在github上,

#进入bin目录
./plugin -install mobz/elasticsearch-head

[root@localhost bin]# ./plugin -install mobz/elasticsearch-head
-> Installing mobz/elasticsearch-head...
Trying https://github.com/mobz/elasticsearch-head/archive/master.zip...
Downloading ...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................DONE
Installed mobz/elasticsearch-head into /usr/elasticsearch-1.7.1/plugins/head

这样就安装成功了。

浏览器输入 http://xxxx:9200/_plugin/head



6.安装bigdesk 插件 该插件也是托管在github 上 https://github.com/lukas-vlcek/bigdesk.git

./plugin -install lukas-vlcek/bigdesk/2.5.0

[root@localhost bin]# ./plugin -install lukas-vlcek/bigdesk/2.5.0
-> Installing lukas-vlcek/bigdesk/2.5.0...
Trying http://download.elasticsearch.org/lukas-vlcek/bigdesk/bigdesk-2.5.0.zip...
Trying http://search.maven.org/remotecontent?filepath=lukas-vlcek/bigdesk/2.5.0/bigdesk-2.5.0.zip...
Trying https://oss.sonatype.org/service/local/repositories/releases/content/lukas-vlcek/bigdesk/2.5.0/bigdesk-2.5.0.zip...
Trying https://github.com/lukas-vlcek/bigdesk/archive/2.5.0.zip...
Trying https://github.com/lukas-vlcek/bigdesk/archive/master.zip...
Downloading ..........................................................................................................................................................................................................................................................DONE
Installed lukas-vlcek/bigdesk/2.5.0 into /usr/elasticsearch-1.7.1/plugins/bigdesk
Identified as a _site plugin, moving to _site structure ...
[root@localhost bin]# 
安装后请求:http://xxxx:9200/_plugin/bigdesk  ,点击node 

界面上是一些es一些动态的状态。


7.安装marvel 插件 (该插件是收费的,但对开发者可免收免费使用),集以上两个插件的功能于一身

./plugin -install elasticsearch/marvel/latest

浏览器请求: http://xxxx:9200/_plugin/marvel 


ok!


猜你喜欢

转载自blog.csdn.net/qq_27828675/article/details/78388327
今日推荐