web123456

Configuration and Kibana under Windows

1. DownloadElasticsearch 8.12.2

Download Elasticsearch | Elastic

2. Downloadkibana 8.12.2

Download Kibana Free | Get Started Now | Elastic

3. Download ik: /infinilabs/analysis-ik/releases?page=1
Select a download that is consistent with the downloaded es version

Decompress and change the name: unzip the downloaded installation package, and then change the decompressed installation package to ik

Add directory: Move the ik directory into espluginsTable of contents

Installation verification: terminal input command elasticsearch-plugin list

These two versions must be the same. In addition, kinbana functions like a database (Elasticsearch) visualization tool.

4. After decompressing the two compressed packages, you only need to modify the configuration file, and you don’t need to move the rest.

  1. : WIN-liuxu #The node is enabled when connecting to kibana, and the node name needs to be given. Here I am customizing itcluster.initial_master_nodes: ["WIN-liuxu"] # Correspond to the above: 0.0.0.0 #All hosts access: 9200 #Default Port: true   #Enable password authentication: true 
    : # Enable SSL encryption access, this requires applying for a CA certificate, I will ban it directly here. If you use true, then you must also use the certificate when connecting to Kibana  enabled: false
      : certs/http.p1
    :
      enabled: true
      verification_mode: certificate
      : certs/transport.p12
      : certs/transport.p12
    : 0.0.0.0
    ​
: "0.0.0.0" #All hosts access: "kibana_system" #This account is es default, and it is recommended to use this user to connect to kibana: "123456" # If you don't know the password, see how to set the password below: none # This means accessing es without using ca encryption, corresponding to the above​

5. Reset and set password

  1. Reset password: Just after decompressing es, enter the bin directory to use cmd, and then use elasticsearch-reset-password -uelasticThe command will generate a random password afterwards. The new value is the password. The account is elastic. You can use this to log in to es.

  2. Custom password: Because reset passwords are difficult to remember, we need to set a password ourselves. The recommended is 123456 terminal input command elasticsearch-reset-password --username elastic -i -- Be sure to run ES first. This is for elastic to set the password. We mentioned above that if you use kibana to connect es, you cannot use elastic users. You should use kibana_system, so we also need to set the password of kibana_system elasticsearch-reset-password --username kibana_system -i and then write your password to it and then start it.

6. The problem of es startup garbled code

Garbled code: EnterconfigTable of contents--->OpenFile—> Add at the end-=GBK