This is the fifth day of my participation in the August More text Challenge. For details, see: August More Text Challenge

If ❤️ my article is helpful, welcome to like, follow. This is the greatest encouragement for me to continue my technical creation. More past articles in my personal column

Linux Install Elasticsearch and configure it

Download the Elasticsearch

Elasticsearch download address www.elastic.co/downloads/e…

Because foreign general download is slow, you can use the domestic mirror: www.newbe.pro/tags/Mirror…

There are also other open source software available for download:

  • Filebeat: www.newbe.pro/Mirrors/Mir…
  • Elasticsearch: www.newbe.pro/Mirrors/Mir…
  • Kibana: www.newbe.pro/Mirrors/Mir…
  • Logstash: www.newbe.pro/Mirrors/Mir…
  • The RabbitMQ: www.newbe.pro/Mirrors/Mir…

Elasticsearch Linux installation

Environmental Centos 7

First need to/domestic mirror site (https://mirrors.huaweicloud.com/home) to find Elasticsearch version, you need to download the package, Here I select elasticsearch-7.8.0-linux-x86_64.tar.gz

# download Elasticsearch package wget HTTP: / / https://mirrors.huaweicloud.com/elasticsearch/7.8.0/elasticsearch-7.8.0-linux-x86_64.tar.gz Tar -zxvf Elasticsearch-7.8.0-linux-x86_64.tar.gz && CD Elasticsearch-7.8.0Copy the code

The configuration file

After the elasticSearch. yml file is decompressed, you need to configure the elasticSearch. yml file to provide services

# configuration file The following vim config/elasticsearch yml # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - node. Name: Initial_master_nodes = node.name = node.name = node. initial_master_nodes [" nod-1 "] # network.host: 127.0.0.1 http.port: 0.0.0.0 Http.ors. Enabled: true http.ors. Allow-origin: "*" # -----------------Copy the code

Start the elasticsearch

After the elasticsearch.yml file is configured, you can use the./bin/Elasticsearch command to try to start elasticsearch

Publish_address, bound_addresses provide the IP address and port of the service. Started indicates successful startup

[the 2021-08-05 T22: behold, 149] [INFO] [O.E.H.A bstractHttpServerTransport] [node - 1] publish_address {9200} 192.168.20.182:, Bound_addresses {0.0.0.0:9200} [2021-08-05t22:24:12, 150][INFO][o.E.n.ode][Nod-1] started [2021-08-05T22:24:12,936][INFO][O.E.L.Enseservice][Nod-1] License [2425391e-58AD-4212-8216-556f416a3a8a] mode (basic) - valid [the 2021-08-05 T22: behold, 939] [INFO] [O.E.X.S.S.S ecurityStatusChangeListener] [node - 1] Active license is now [BASIC]; Security is disabled [2021-08-05T22:24:12,962][INFO][O.E.G.WayService][nob-1] recovered [3] indices into Cluster_state [while the T22:2021-08-05, 378] [INFO] [O.E.C.R.A.A llocationService] [node - 1] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[material_pass_category][1]]]).Copy the code