Installation in window11 environment: Elasticsearch, Logstash and Kibana

Installation in window11 environment: Elasticsearch, Logstash and Kibana

[Note] Elasticsearch depends on JDK, so you need to ensure that jdk is installed on the machine in advance; this tutorial is to install Elasticsearch 6.3.3 version (the logstash and kibana versions are the same), which requires jdk1.8

Baidu network disk address:

jdk1.8:
Link: https://pan.baidu.com/s/1VsmchceVPo9PDE3zmP514g?pwd=1234
Extraction code: 1234
elasticsearch + logstash + kibana:
Link: https://pan.baidu.com/s/1qVpy6pK0GIy-WiKw87-5Gg?pwd=1234
Extraction code: 1234

Install JDK (if it has already been installed on your computer, you can skip it and start installing Elasticsearch directly)

1, install jdk

Double-click the jar package to start the installation: Next step

Select the jdk installation directory:

Select the jre directory: Next step

Just wait for the installation to complete:

2. Configure jdk environment variables:

On the desktop, right-click “This PC” and select Properties. A pop-up window will appear. Click “Advanced system settings”

Click: Environment variables

Click the New button under the system variable. The variable name is JAVA_HOME (representing your JDK installation path), and the value corresponds to the installation path of your JDK.

Continue to click New: copy and paste the variable value directly (note that there is an English word in front.)

Variable name: CLASSPATH
Variable value: .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar

Edit path:

Add variable value:

%JAVA_HOME%\bin
%JAVA_HOME%\jre\bin

Click OK

3. Check whether jdk is installed successfully:

On the desktop, use the shortcut key: win + R (win is the square key at the bottom left of the keyboard) to bring up the command line cmd, click OK to enter the command line editing window, and then enter the command:

java-version

As long as the version is displayed, the installation is successful;

Install Elasticsearch6.3.0

Just decompress the downloaded elasticsearch6.3.0 compressed package;

Then enter the bin directory: double-click elasticsearch.bat

Started successfully:

  • 9300: Communication interface between cluster nodes
  • 9200: Client access interface

[Note] The default client port of elasticsearch is 9200. Mine shows 9201 because port 9200 is occupied.

Browser access address: localhost:9200

Successful installation!

Install Kibana6.3.0

Just decompress the downloaded kibana6.3.0 directly

Enter the bin directory: double-click kibana.bat to run

Started successfully:

Access address: localhost:5601

Successful installation!

[Note] If your 9200 port is occupied like mine, you need to modify the kibana.yml file in the config directory: because kibana depends on elasticsearch

Double-click to open: Open the following line. It was originally commented out, followed by your elasticsearch address.

After saving, re-run kibana.bat;

Install logstash6.3.0

Unzip the downloaded logstash6.3.0:

Enter the bin directory and create the file: logstash.conf

Double-click to open this file and edit the content as:

input {<!-- -->
    stdin{<!-- -->
    }
}
 
output {<!-- -->
    stdout{<!-- -->
    }
}

Save and exit; enter: cmd in the address bar under the bin directory to bring up the command line

input the command:

logstash -f logstash.conf -t

Everyone’s output may be different, but as long as you have the following tips:

Then enter the command: start logstash

logstash -f logstash.conf

Then access the address: localhost:9600

Successful installation!

[Note] If your elasticsearch port number 9200 is occupied like mine, you need to modify the following files:

Change the address of elasticsearch to your own:

Then, call up the command line in the bin directory again and enter the commands in sequence:

#Enter first and press Enter
logstash -f logstash.conf -t
#Enter again:
logstash -f logstash.conf

At this point, all installation is complete! !