下载WINDOWS版本ES8 解压缩后 使用第一次运行elasticSearch时 会自动进行安全配置
这事在控制台中可以看到有password
-> 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`):
RGiwCn4abvxC4CYHNqvU
-> HTTP CA certificate SHA-256 fingerprint:
d19444a525f78eb2d2cc54dd176a5ba19d622d6f140e172c86efeaccdac3fd3b
-> 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):
eyJ2ZXIiOiI4LjAuMCIsImFkciI6WyIxNzIuMTkuNTEuNjU6OTIwMCIsIjE5Mi4xNjguMzEuMTE6OTIwMCIsIjE5Mi4xNjguMTA2LjE6OTIwMCIsIjE5Mi4xNjguMjMuMTo5MjAwIl0sImZnciI6ImQxOTQ0NGE1MjVmNzhlYjJkMmNjNTRkZDE3NmE1YmExOWQ2MjJkNmYxNDBlMTcyYzg2ZWZlYWNjZGFjM2ZkM2IiLCJrZXkiOiJ6TGhPOTM0QlBfcEVPS3pnVlhocTpNUmg0TnFqcVJvNm45R1ZHSFNPRllnIn0=
-> 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 <token>`, using the enrollment token that you generated.
如果你已经不是第一次启动,请在log日志中查找即可