要将 Elasticsearch 配置文件从 HTTPS 改为 HTTP,你需要进行以下步骤:\n\n1. 打开 elasticsearch.yml 配置文件。默认位置在 Elasticsearch 安装目录的 config 文件夹中。\n\n2. 找到以下配置行:\n\n# Uncomment and change the node.name to node.name: node-1\n#node.name: node-1\n\n\n3. 取消注释并将node.name的值更改为所需的节点名称,例如:\n\nnode.name: node-1\n\n\n4. 找到以下配置行:\n\n# Uncomment and set network.host to the IP address of the host\n#network.host: 192.168.0.1\n\n\n5. 取消注释并将network.host的值更改为主机的 IP 地址,例如:\n\nnetwork.host: 127.0.0.1\n\n\n6. 找到以下配置行:\n\n# Uncomment and set transport.host to the IP address of the host\n#transport.host: 192.168.0.1\n\n\n7. 取消注释并将transport.host的值更改为主机的 IP 地址,例如:\n\ntransport.host: 127.0.0.1\n\n\n8. 找到以下配置行:\n\n# Set to true to enable HTTP on the node\n#http.enabled: false\n\n\n9. 将http.enabled的值更改为true以启用 HTTP,例如:\n\nhttp.enabled: true\n\n\n10. 保存并关闭 elasticsearch.yml 文件。\n\n11. 重新启动 Elasticsearch 服务,使更改生效。\n\n现在,Elasticsearch 配置已从 HTTPS 改为 HTTP。请注意,这只是将 Elasticsearch 的传输协议从 HTTPS 改为 HTTP,安全性将受到影响。

Elasticsearch 配置文件:从 HTTPS 切换到 HTTP

原文地址: https://www.cveoy.top/t/topic/pT9D 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录