我目前正在一台蔚蓝的linux服务器上建立一个Elasticsearch的产品栈,到目前为止已经取得了成功,但遇到了麻烦。目前,我的核心Elasticsearch、Kibana和EnterpriseSearch服务已在服务器上启动并运行,我可以使用本地主机上的"curl -XGET“访问所有这些服务,并且可以使用服务器公共ip在远程机器上到达公开的Kibana。
我现在面临的唯一问题是,应用程序搜索引擎端点在远程点击时返回err_connection_refused。这方面的一个例子是:当为模板国家公园数据引擎生成一个搜索UI模板时,我会收到“这个站点拒绝连接”的错误。我已经确认,端口3002通过azure网络接口对所有入站和出站通信都是开放的(并且防火墙在机器上是禁用的),所以我认为我有一个配置问题。下面是我添加到每个yml文件中的配置。任何帮助都是巨大的。
elasticsearch.yml
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
xpack.security.http.ssl:
enabled: true
keystore.path: certs/http.p12
xpack.security.transport.ssl:
enabled: true
verification_mode: certificate
keystore.path: certs/transport.p12
truststore.path: certs/transport.p12
cluster.initial_master_nodes: ["Elastic"]
http.host: [_local_, _site_]kibana.yml
server.host: "0.0.0.0"
enterpriseSearch.host: http://localhost:3002enterprise-search.yml
secret_management.encryption_keys: ['I have a 256-bit encryption key here']
allow_es_settings_modification: true
elasticsearch.host: https://127.0.0.1:9200
elasticsearch.username: elastic
elasticsearch.password: password
elasticsearch.ssl.enabled: true
elasticsearch.ssl.certificate_authority: /path/config/certs/http_ca.crt
kibana.host: http://localhost:5601
kibana.external_url: http://azure-public-ip:5601
ent_search.external_url: http://azure-public-ip:3002
ent_search.listen_host: 127.0.0.1
ent_search.listen_port: 3002发布于 2022-04-27 20:00:09
找到解决办法了。
The configuration variable I had set wrong was "ent_search.listen_host". I had it set to my local host ip where it should have been set to 0.0.0.0
值得注意的是,我最初将这个变量设置为虚拟机ip,但是这始终报告为“未能绑定到ip”。
我会保持这个解决方案,以防任何人需要它。
https://stackoverflow.com/questions/71864405
复制相似问题