Elasticsearch learning (1): install and run under Linux

Elasticsearch learning (1): installation under Linux

ubuntu (Linux) download and install jdk8

Use the following command in the terminal to download and install

sudo apt-get install default-jdk

Download and install elasticsearch

Use the following commands to download and install in turn.
Due to the version problem of the plug-in installed later, the blogger downloaded version 6.8.15 here. Change 7.4.2 of the following command to 6.8.15.

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.4.2-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.4.2-linux-x86_64.tar.gz.sha512
shasum -a 512 -c elasticsearch-7.4.2-linux-x86_64.tar.gz.sha512
tar -xzf elasticsearch-7.4.2-linux-x86_64.tar.gz
cd elasticsearch-7.4.2/

Run elasticsearch

$ ./bin/elasticsearch

After that, a large piece of information will pop up. At this time, we will open a new terminal and check whether the elastic service is turned on
. Enter the command in the new terminal.

$ curl localhost:9200

The result is as shown in the figure to illustrate the successInsert picture description here

Guess you like

Origin blog.csdn.net/AirCstdio/article/details/115310748