1、运行:
/bin/elasticsearch.bat
注意:9300为ElasticSearch集群间组件的通信端口,9200为浏览器访问的http协议RESTful端口;
结果:访问失败!
尚硅谷的老师提出可能遇到的问题:
1、java的版本问题,需jdk1.8以上版本;
2、空间不足,修改config/jvm.options配置文件
因此,由于本机安装了jdk1.8,以为版本过低,试图通过修改配置文件修改java版本;
修改后更无法访问;
还好看了一下控制台出错的原因:
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]:63658}
百度后发现,是因为安全认证的问题:
关闭了安全认证,如下:
# Enable security features xpack.security.enabled: false xpack.security.enrollment.enabled: true # Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents xpack.security.http.ssl: enabled: false keystore.path: certs/http.p12
这时,需要重启/bin/elasticsearch.bat;
完成!
标签:http,9200,xpack,Windows,enabled,elasticsearch,security,安装 From: https://www.cnblogs.com/litchihan/p/16613860.html