ES安装
- 安装JDK
wget -P /opt https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.2-linux-x86_64.tar.gz
tar -zxvf elasticsearch-7.16.2-linux-x86_64.tar.gz
ES不能使用root运行,创建elsearch用户组及elsearch用户:
groupadd elsearch
useradd elsearch -g elsearch
passwd elsearch
更改es目录
cd /opt
chown -R elsearch:elsearch elasticsearch-7.16.2
运行
cd elasticsearch-7.16.2
bin/elasticsearch
检查
curl 127.0.0.1:9200
elasticsearch 配置外网访问
vim config/ elasticsearch.ym
添加:http.host: 0.0.0.0
配置
配置文件在config目录中
elasticsearch.yml es配置 jvm.options jvm配置 log4j2.properties 日志配置
ES配置
集群
Document 文档数据 Index 索引 Type 索引中的数据类型 Field 字段
CURD
kibana
下载
wget -P /opt/software artifacts.elastic.co/downloads/k…
启动 ./bin/kibana
访问:127.0.0.1:5601
打开提示Kibana server is not ready yet的解决方案
先停止Kibana服务,然后删除4个索引
curl -XDELETE http://127.0.0.1:9200/.kibana
curl -XDELETE http://127.0.0.1:9200/.kibana*
curl -XDELETE http://127.0.0.1:9200/.kibana_2
curl -XDELETE http://127.0.0.1:9200/.kibana_1