elasticsearch外网访问9200端口失败,bootstrap checks failed,the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts,

discovery.seed_providers, cluster.initial_master_nodes] must be configured

Linux安装ElasticSearch,修改配置文件elasticsearch.yml 后启动失败。

  • CentOS Linux release 7.5
  • ElasticSearch version 7.3.0
  • Java openjdk version 1.8.0_222

我的设置:

vim /etc/elasticsearch/elasticsearch.yml
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 0.0.0.0
#

查看日志发现 (npm 安装elasticsearch 日志路径 /var/log/elasticsearch)

[ERROR][o.e.b.Bootstrap] [localhost.localdomain] node validation exception
[1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts,
discovery.seed_providers, cluster.initial_master_nodes] must be configured

翻译过来就是,在discovery.seed_hosts,discovery.seed_providers, cluster.initial_master_nodes中至少设置一项。

仔细看了官网文档:discovery.seed_hosts 设置成默认值即可。

discovery.seed_hosts: ["127.0.0.1", "[::1]"]

最新文章

  1. javascript基础知识
  2. <十六>JDBC_使用 DBUtils 编写通用的DAO
  3. windows下实现Git在局域网使用
  4. Theano:LSTM源码解析
  5. Tornado中Cookie过期问题
  6. php中explode与split的区别介绍
  7. shell读取文件内容
  8. glup Browsersync
  9. 本博客不再更新,欢迎访问本人托管在GitHub上的博客:www.wshunli.com
  10. (六)6.10 Neurons Networks implements of softmax regression
  11. tomcat 解析(三)-启动框架
  12. 关于搭建haddoop分布式系统的全部过程复习
  13. KMP的next[]数组
  14. HW4.10
  15. Learing WCF Chapter1 Fundamental WCF Concepts
  16. C++之------虚函数
  17. JDBC详解系列(二)之加载驱动
  18. Android FoldingLayout 折叠布局 原理及实现(二)
  19. 广告等第三方应用嵌入到web页面方案 之 使用iframe嵌入
  20. ASP.NET Core - 从Program和Startup开始

热门文章

  1. 【30天自制操作系统】day05:结构体、文字显示与 GDT/IDT 初始化
  2. 深度好文:PHP写时拷贝与垃圾回收机制(转)
  3. js 淡入淡出的tab选项卡
  4. GitLab-使用SSH的方式拉取和推送项目
  5. 43.QT-访问远程SQLite数据库
  6. 从零开始搭建solo个人博客系统
  7. Node.js实现图片上传功能
  8. A:linux基础章节导航
  9. quarter软件的破解
  10. 多项式总结(STAGE 1)