不知道为啥http://127.0.0.1:9200/和http://localhost:9200/均可访问但是用我的内网ip访问不了
后来我知道了原因
配置了network.host后重启报错
然后配置
node.name: node-1
cluster.initial_master_nodes: [“node-1”]
重新启动可以了;当然这时候localhost和127.0.0.1则不能访问了
参考了该博客https://www.cnblogs.com/z-coding/p/14179639.html