elasticsearch 7 安装

elasticsearch 安装
操作系统:CentOS Linux release 7.4
elasticsearch:elasticsearch-7.1.1
es7+centos7

1.软件下载
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.1.1-linux-x86_64.tar.gz

2.修改/etc/hosts
192.168.42.40 cs1
192.168.42.45 cs2
192.168.42.46 cs3

3.cs1,cs2,cs3修改elasticsearch.yml
cluster.name: mmm
node.name: cs1
network.host: 0.0.0.0
discovery.seed_hosts: ["cs1", "cs2","cs3"]
cluster.initial_master_nodes: ["cs1","cs2","cs3"]
http.cors.enabled: true
http.cors.allow-origin: "*"

4.启动elasticsearch
cd /usr/local/es7
./bin/elasticsearch

5.安装elasticsearch-head
elasticsearch-head是es的客户端工具

 

posted @ 2019-06-19 17:43  东哥加油!!!  阅读(1737)  评论(0编辑  收藏  举报