一、资源准备
名称 |
地址 |
ElasticSearch7.8 |
https://mirrors.huaweicloud.com/home(华为开源镜像站) |
Logstash7.8 |
https://mirrors.huaweicloud.com/home(华为开源镜像站) |
Kibana7.8 |
https://mirrors.huaweicloud.com/home(华为开源镜像站 |
jdk1.8 |
https://www.oracle.com/java |
二、安装配置
tar -zxvf elasticsearch-7.8.0-linux-x86_64.tar.gz /usr/local/es
由于elasticsearch不允许root用户操作,所以需要建立子用户
useradd my_user
chown -R my_user:my_user /usr/local/elasticsearch-7.8.0
mkdir /opt/es/data
mkdir /opt/es/logs
chown -R my_user:my_user /opt/es/data
chown -R my_user:my_user /opt/es/logs
vim /usr/local/elasticsearch-7.8.0/config/elasticsearch.yml
-------------------------------------------------------------------------------------------------------------------------
cluster.name: es-node1
node.name: node-1
path.data: /opt/es/data
path.logs: /opt/es/logs
network.host: 0.0.0.0