Elasticsearch-head on Linux cannot connect to Elasticsearch7 console error 503 is reported

Problem Description

Cannot connect to es when accessing ip address: 9100

Possible problems:

-As follows, the interface parameters are not set
Insert picture description here

-The configuration parameters are not configured correctly. The source of these problems is mainly reflected in the configuration problems of the config/elasticsearch.yml file. The following are my configuration file parameters

node.name: elasticsearch
path.data: /home/elasticsearch-7.3.2/data
network.host: 0.0.0.0
http.port: 9200
cluster.initial_master_nodes: ["elasticsearch"]
http.cors.enabled: true
http.cors.allow-origin: "*"

  • The last two parameters are not configured and cross-domain requests are opened, resulting in inaccessibility
  • The node.name parameter and the cluster.initial_master_nodes parameter do not agree, lz is the reason. lz initially configured the cluster.initial_master_nodes parameter but did not configure the node.name parameter, and the default value of the node.name parameter is node-1, depending on the difference between the two parameters, the connection cannot be made
    Insert picture description here

Solve the problem:

  • Modify ip: 9100 port number to connect to the address of es
  • Elasticsearch.yml modify the configuration file node.nameand cluster.initial_master_nodesthe same parameters, you can restart es

Call it back, a few points like

Guess you like

Origin blog.csdn.net/qq_42910468/article/details/107072819