ES集群搭建

三台服务器IP

  • x.x.x.226
    java版本:openjdk version "1.8.0_191"(命令 java -version)
  • x.x.x.227
    java版本:java version "1.8.0_221"
  • x.x.x.228
    java版本:openjdk version "1.8.0_212"
  • ES版本6.24

elasticsearch安装

curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.tar.gz
tar -xvf elasticsearch-6.2.4.tar.gz -C /opt
cd  /opt/elasticsearch-6.2.4/bin
# 启动测试
./elasticsearch
http://localhost:9200/
返回
{
  "name" : "node-1",
  "cluster_name" : "zples",
  "cluster_uuid" : "_na_",
  "version" : {
    "number" : "6.2.4",
    "build_hash" : "ccec39f",
    "build_date" : "2018-04-12T20:37:28.497551Z",
    "build_snapshot" : false,
    "lucene_version" : "7.2.1",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}
则成功

elasticsearch.yaml配置

image.png

image.png

使用nohup运行ES

nohup ./elasticsearch &

kibana搭建

# 最好找寻于ES一个版本的kibana
curl -L -O https://artifacts.elastic.co/downloads/kibana/kibana-6.2.4-linux-x86_64.tar.gz
#解压后编辑kibana配置文件,将server.host设置为0.0.0.0,运行bin目录下的kibana执行文件
访问http://搭建kibana的ip:5601(默认端口)
image.png

你可能感兴趣的:(ES集群搭建)