ElasticSearch 安装错误 - curl: (7) Failed connect to localhost:9200;连接被拒绝
ElasticSearch installation error - curl: (7) Failed connect to localhost:9200; Connection refused
我正在尝试使用 this 教程
配置 ElasticSearch
除了教程的第 4 步,我已经完成了所有操作。
在第5步,当我运行这个命令时:
curl -X GET 'http://localhost:9200'
我收到这个错误:
curl: (7) Failed connect to localhost:9200; Connection refused
我尝试了两种不同的方法来修复错误:
network.bind_host: 0.0.0.0
网络:
主机:192.168.2.229
但是都没有解决问题。
我应该如何测试Elasticsearch并解决这个错误?
谢谢。
您只需在 elastic-search 配置文件中取消注释这些行:
cluster.name: your_cluster_name
node.name: "Your Node Name"
network.bind_host: localhost
network.publish_host: 0.0.0.0
network.host: 0.0.0.0
运行这个命令。
curl -X GET http://localhost:9200
我正在尝试使用 this 教程
配置 ElasticSearch除了教程的第 4 步,我已经完成了所有操作。
在第5步,当我运行这个命令时:
curl -X GET 'http://localhost:9200'
我收到这个错误:
curl: (7) Failed connect to localhost:9200; Connection refused
我尝试了两种不同的方法来修复错误:
network.bind_host: 0.0.0.0
网络: 主机:192.168.2.229
但是都没有解决问题。
我应该如何测试Elasticsearch并解决这个错误?
谢谢。
您只需在 elastic-search 配置文件中取消注释这些行:
cluster.name: your_cluster_name
node.name: "Your Node Name"
network.bind_host: localhost
network.publish_host: 0.0.0.0
network.host: 0.0.0.0
运行这个命令。
curl -X GET http://localhost:9200