elasticsearch 安装操作系统:CentOS Linux release 7.4elasticsearch:elasticsearch-7.1.1es7+centos71.软件下载wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.1.1-linux-x86_64.tar.gz2.修改/etc/hosts192.168.42.40 cs1192.168.42.45 cs2192.168.42.46 cs33.cs1,cs2,cs3修改elasticsearch.ymlcluster.name: mmmnode.name: cs1network.host: 0.0.0.0discovery.seed_hosts: ["cs1", "cs2","cs3"]cluster.initial_master_nodes: ["cs1","cs2","cs3"]http.cors.enabled: truehttp.cors.allow-origin: "*"4.启动elasticsearchcd /usr/local/es7./bin/elasticsearch5.安装elasticsearch-headelasticsearch-head是es的客户端工具