1、将安装包复制到服务器/tmp目录下,解压后移动到/usr/local/目录下:
#集群名字 cluster.name: my-application #节点名 node.name: node-master #设置为主节点 node.master: true #设置存储数据 node.data: true #数据存储路径 path.data: /test/es/data #日志存储路径 path.logs: /test/es/logs #网络绑定,这里绑定局域网IP,用来内网访问(也可以绑定0.0.0.0,支持外网访问) network.host: 0.0.0.0 #端口 http.port: 9200 #内部节点之间沟通端口 transport.tcp.port: 9300 #在集群完全重新启动后阻止初始恢复,直到n个节点启动 gateway.recover_after_nodes: 3 #开启跨域访问 http.cors.enabled: true #允许所有域名访问 http.cors.allow-origin: "*" # discovery.seed_hosts: ["127.0.0.1:9300"] # 手动指定可以成为 mater 的所有节点的 name 或者 ip,这些配置将会在第一次选举中进行计算 cluster.initial_master_nodes: ["127.0.0.1"] |
{"name": "master","cluster_name": "my-application","cluster_uuid": "_na_","version": {"number": "7.2.1","build_flavor": "default","build_type": "tar","build_hash": "fe6cb20","build_date": "2019-07-24T17:58:29.979462Z","build_snapshot": false,"lucene_version": "8.0.0","minimum_wire_compatibility_version": "6.8.0","minimum_index_compatibility_version": "6.0.0-beta1"},"tagline": "You Know, for Search"} |
cluster.name: my-application node.name: master node.master: true node.data: true path.data: /test/es/data path.logs: /test/es/logs network.host: 0.0.0.0 http.port: 9200 transport.tcp.port: 9300 gateway.recover_after_nodes: 3 http.cors.enabled: true http.cors.allow-origin: "*" discovery.seed_hosts: ["127.0.0.1:9300"] cluster.initial_master_nodes: ["127.0.0.1"] |
百度网盘:
Elasticsearch :链接:https://pan.baidu.com/s/1cznwm0L2rSFLCy-Kxflq1Q 提取码:mxra
Kibana :链接:https://pan.baidu.com/s/1LkhG_0F8RjKsZtci61qCtQ 提取码:tuu0
Logstash :链接:https://pan.baidu.com/s/1ZBT8aPDbOwFpgnOxXEj7dg 提取码:u22b
plugins :链接:https://pan.baidu.com/s/19Qhj6CXNHMG-99vb2p8nxw 提取码:opqx