elasticsearch安装与部署
下载地址:www.elastic.co/cn/download…
(1)配置elasticsearch.yml文件
xpack.security.enabled: false//登陆不需要账号密码验证 xpack.security.http.ssl:enabled: true//访问不需要https 注意:第一次启动:会随机生成账号
(2)运行:
命令:>elasticsearch
elasticsearch-plugin list 插件清单
第一次安装:请记住密码
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Elasticsearch security features have been automatically configured!
✅ Authentication is enabled and cluster connections are encrypted.
ℹ️ Password for the elastic user (reset with bin/elasticsearch-reset-password -u elastic):
_iKGGGFjzBJL5SI0_X**
ℹ️ HTTP CA certificate SHA-256 fingerprint:
2d7d215228e82d29612bed9e7e35a95e45862de6d400be07ea5c66e00fc0c70d
ℹ️ Configure Kibana to use this cluster:
• Run Kibana and click the configuration link in the terminal when Kibana starts.
• Copy the following enrollment token and paste it into Kibana in your browser (valid for the next 30 minutes):
eyJ2ZXIiOiI4LjkuMCIsImFkciI6WyIxMC4xMC4yMi43Mzo5MjAwIl0sImZnciI6IjJkN2QyMTUyMjhlODJkMjk2MTJiZWQ5ZTdlMzVhOTVlNDU4NjJkZTZkNDAwYmUwN2VhNWM2NmUwMGZjMGM3MGQiLCJrZXkiOiJPamE1MllrQnkzY3BYd1M0YW5GRzoxVnNEUU94elRzcXFfM0JrNUdCOWJRIn0=
ℹ️ Configure other nodes to join this cluster:
• On this node:
⁃ Create an enrollment token with bin/elasticsearch-create-enrollment-token -s node.
⁃ Uncomment the transport.host setting at the end of config/elasticsearch.yml.
⁃ Restart Elasticsearch.
• On other nodes:
⁃ Start Elasticsearch with bin/elasticsearch --enrollment-token , using the enrollment token that you generated.