Problem Description
Cannot connect to es when accessing ip address: 9100
Possible problems:
-As follows, the interface parameters are not set
-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
Solve the problem:
- Modify ip: 9100 port number to connect to the address of es
- Elasticsearch.yml modify the configuration file
node.name
andcluster.initial_master_nodes
the same parameters, you can restart es
Call it back, a few points like