当前位置:   article > 正文

ES(elasticsearch)已启动成功但服务器IP却打不开_elasticsearch启动成功 打不开网页

elasticsearch启动成功 打不开网页

Linux系统中,已安装并启动elasticsearch-8.0.0,但是网页版IP就是打不开,进程都可以查得到,排除问题过程如下:

(1)查看是否有防火墙问题,关闭防火墙后再试试IP打开。

(2)如./elasticsearch直接启动的,接下来滚动的就是启动日志信息,看报错就可以,不过以后不建议这样启动,因为当此页面关掉后,ES也会掉下来。

(3)后台启动的,./elasticsearch -d启动的,到logs文件下找到集群的日志,查看。

tail -200f my-application.log

"WARN", "message":"received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=

拒绝连接1.2.3.4:9200,但在前面增加https://1.2.3.4:9200就可以了,但正常情况是直接输入网址就可以的。所以我们到vi elasticsearch.yml标黄色部分,后面都改为false。


# ---------------------------------- Various -----------------------------------
#
# Allow wildcard deletion of indices:
#
#action.destructive_requires_name: false

#----------------------- BEGIN SECURITY AUTO CONFIGURATION -----------------------
#
# The following settings, TLS certificates, and keys have been automatically
# generated to configure Elasticsearch security features on 19-02-2022 03:19:49
#
# --------------------------------------------------------------------------------

# Enable security features
xpack.security.enabled: false

xpack.security.enrollment.enabled: 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

# Enable encryption and mutual authentication between cluster nodes
xpack.security.transport.ssl:
  enabled: false
  verification_mode: certificate
  keystore.path: certs/transport.p12
  truststore.path: certs/transport.p12
# Create a new cluster with the current node only
# Additional nodes can still join the cluster later
cluster.initial_master_nodes: ["localhost.local"]

# Allow HTTP API connections from localhost and local networks
# Connections are encrypted and require user authentication
http.host: [_local_, _site_]

# Allow other nodes to join the cluster from localhost and local networks
 

  1. # ---------------------------------- Various -----------------------------------
  2. #
  3. # Allow wildcard deletion of indices:
  4. #
  5. #action.destructive_requires_name: false
  6. #----------------------- BEGIN SECURITY AUTO CONFIGURATION -----------------------
  7. #
  8. # The following settings, TLS certificates, and keys have been automatically
  9. # generated to configure Elasticsearch security features on 19-02-2022 03:19:49
  10. #
  11. # --------------------------------------------------------------------------------
  12. # Enable security features
  13. xpack.security.enabled: false
  14. xpack.security.enrollment.enabled: false
  15. # Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
  16. xpack.security.http.ssl:
  17. enabled: false
  18. keystore.path: certs/http.p12
  19. # Enable encryption and mutual authentication between cluster nodes
  20. xpack.security.transport.ssl:
  21. enabled: false
  22. verification_mode: certificate
  23. keystore.path: certs/transport.p12
  24. truststore.path: certs/transport.p12
  25. # Create a new cluster with the current node only
  26. # Additional nodes can still join the cluster later
  27. cluster.initial_master_nodes: ["localhost.local"]
  28. # Allow HTTP API connections from localhost and local networks
  29. # Connections are encrypted and require user authentication
  30. http.host: [_local_, _site_]
  31. # Allow other nodes to join the cluster from localhost and local networks

elasticsearch-8.0.0报错总结(ES)-持续更新_m0_64295612的博客-CSDN博客icon-default.png?t=M1H3https://blog.csdn.net/m0_64295612/article/details/123019019

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/457594
推荐阅读
相关标签
  

闽ICP备14008679号