具体报错[2023-07-18T00:55:28,203][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [demo] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress/127.0.0.1:9200, remoteAddress/127.0.0.1:55296}解决方法修改安装目录下的.\config\elasticsearch.yml文件将xpack.security.enabled:true修改为xpack.security.enabled:false修改完成后重启就好了。