Install and configure Kibana under Windows

        In the previous article " Installing and configuring ElasticSearch under Windows ", we introduced the basic installation and configuration of ElasticSearch. This article mainly introduces the installation and configuration of Kibana plugins. Kibana can be understood as a visual management tool for ElasticSearch.

1.
    Download address of the download file : https://www.elastic.co/cn/downloads/past-releases
    Note that the downloaded version needs to be consistent with the ElasticSearch version number . For example, the version we downloaded here is the 6.8.9 version, such as : Https://artifacts.elastic.co/downloads/kibana/kibana-6.8.9-windows-x86_64.zip

    
2. Unzip the downloaded compressed package to an installation directory, such as: D:\Net_Program\Net_Kibana
    Note, The outermost layer of the compressed package comes with a folder kibana-6.8.9-windows-x86_64, which can be omitted when decompressing

    
3. Configuration
    As in the previous article " Installing and configuring ElasticSearch under Windows ", We set the user and password for ElasticSearch, so here we need to configure the user and password for Kibana to access ElasticSearch, modify the kibana.yml file in the installation directory config, and modify it as follows:

#设置访问用户
elasticsearch.username: "elastic"
#设置访问密码
elasticsearch.password: "123456"


        
    If ElasticSearch is set for domain name or IP access, you also need to set the kibana.yml file in the installation directory config. The specific modifications are as follows

#ElasticSearch连接地址
elasticsearch.hosts: ["http://192.168.3.200:9200"]

4. Start Kibana service
    4.1. Method 1: You can directly enter the bin directory of the installation and run kibana.bat;
    4.2. Method 2: Start the service by cmd command, open CMD and locate the bin installation directory: D:\Net_Program\Net_Kibana \bin, and then execute kibana.bat
    4.3. Method 3: Use NSSM to set the Windows service to
        open the win64 folder of NSSM, such as D:\Net_Business Software\Net_NSSM\nssm-2.24\win64, and then hold down Shift+right mouse button Click on the blank space of the folder, select "Open Powershell window here"
        and enter .\nssm install to call up the settings window.
        In the pop-up window, in the Application tab,
            Path: select the path where kibana.bat is located, such as D :\Net_Program\Net_Kibana\bin\kibana.bat
            Startup directory: After selecting Path, the Startup directory selection will automatically fill in
            Argument: the parameter for starting the service
            , leave it blank here. Service name: Service name, such as Kibana-Service
        After the setting is completed, click the Install service button to complete, and then check the system service has one more service called Kibana-Service

5. Test

        After the Kibana service is started successfully, you can access it by typing http://localhost:5601 in the browser . The user name and password are the elastic and 123456 we just configured.

        If you want to enable the IP or domain name and modify the port, you can directly modify the server.host and server.port in the kibana.yml in the config, as shown in the following figure:

 

 

 

 

Guess you like

Origin blog.csdn.net/qubernet/article/details/107396854