世界上并没有完美的程序,但是我们并不因此而沮丧,因为写程序就是一个不断追求完美的过程。-侯氏工坊
安装es
下载es
yum -y install perl-Digest-SHA
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.3.3-linux-x86_64.tar.gz
curl https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.3.3-linux-x86_64.tar.gz.sha512 | shasum -a 512 -c -
安装es
- 创建es用户:useradd es
- 为es用户授权:chown -R es:es elasticsearch
- 切换用户:su es
- 启动:./bin/elasticsearch
- 记住elastic的密码
- 后台启动:./bin/elasticsearch -d
- 为kibana创建token:./bin/elasticsearch-create-enrollment-token -s kibana
- 查看es启动状态:curl --cacert config/certs/http_ca.crt -u elastic
安装kibana
下载kibana
wget https://artifacts.elastic.co/downloads/kibana/kibana-8.3.3-linux-x86_64.tar.gz
curl https://artifacts.elastic.co/downloads/kibana/kibana-8.3.3-linux-x86_64.tar.gz.sha512 | shasum -a 512 -c -
安装kibana
- 授权:chown -R es:es kibana
- 配置kibana.yml:server.host: “0.0.0.0”
- 启动:./bin/kibana
- 访问生成的地址:http://:5601/?code=123358
- 输入es生成的kibana的token
- 使用elastic登录