1、received plaintext http traffic on an https channel, closing connection Netty4HttpChannel
received plaintext http traffic on an https channel, closing connection Netty4HttpChannel
{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:55367}
解決
是因?yàn)殚_(kāi)啟了 ssl 認(rèn)證。
在 ES/config/elasticsearch.yml 文件中把xpack.security.http.ssl:enabled
設(shè)置成false
即可
# Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
enabled: false
keystore.path: certs/http.p12
2、elasticsearch 賬號(hào)密碼
windows 下直接啟動(dòng) ElasticSearch ,見(jiàn)到 started 為成功啟動(dòng),訪(fǎng)問(wèn) htttp://localhost:9200 需要輸入密碼,是因?yàn)殚_(kāi)啟了密碼驗(yàn)證模式。
找了一輪沒(méi)看到有賬號(hào)密碼,干脆就設(shè)置免密登錄就好。
解決
找到elasticsearch.yml
文件, 把xpack.security.enabled
屬性設(shè)置為false
即可。文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-692813.html
# Enable security features
xpack.security.enabled: false
3. 設(shè)置內(nèi)存大小
ES 的內(nèi)存是自己調(diào)節(jié)的。在config/jvm.options
文件中直接設(shè)置就好(追加):文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-692813.html
-Xms512m
-Xmx2048m
到了這里,關(guān)于ElasticSearch 啟動(dòng)失敗無(wú)法訪(fǎng)問(wèn)9200的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!