Elasticsearch报错:received plaintext http traffic on an https channel, closing connection Netty4HttpChannel。
Phenomenon, when Elasticsearch is started, enter the address http://localhost:9200/ in the browser
After that, an error is reported
received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200
As shown in the picture:
The reason is that Elasticsearch has enabled security authentication under Windows. Although started successfully, visit http://localhost:9200/
fail.
solution:
Find the elasticsearch.yml configuration file under the config/ directory, and change the security authentication switch from the original true to false to achieve password-free login access. After modifying both of these places to false:
The problem can be solved, open http://localhost:9200/ again
The content is displayed normally: