Elasticsearch报错: received plaintext http traffic on an https channel, closing connection ...

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:

be0505be77b24cda9e1ca6a9fb96b006.png

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:

24d103ffee3d4b0c9d39327d01426c7f.png

 

The problem can be solved, open http://localhost:9200/ again

The content is displayed normally:

4359b8add1104ee3920e1255e6bc6ebd.png

 

 

 

Guess you like

Origin blog.csdn.net/zhangphil/article/details/124476717