沙师弟,师父的充电器掉了

elasticsearch无法listen 0.0.0.0

Elasticsearch | 作者 IKE | 发布于2018年02月24日 | 阅读数:3645

哪位大佬能帮忙看下 万分感谢
第一次安装完elasticsearcsh启动后,无法通过IP访问,拒绝连接,回环访问正常
[root@localhost ~]# curl -I http://127.0.0.1:9200
HTTP/1.1 200 OK
Content-Type: text/plain; charset=UTF-8
Content-Length: 0
[root@localhost ~]#
 
[root@localhost ~]# curl -I http://172.17.60.61:9200         
curl: (7) Failed connect to 172.17.60.61:9200; 拒绝连接
[root@localhost ~]# 
 
防火墙已关闭,文件描述符增加到655350
 
[root@localhost ~]# systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:firewalld(1)
[root@localhost ~]# ulimit -n
655350
[root@localhost ~]# 
 
进程只listen 127.0.0.1
[root@localhost ~]# netstat -anpt | grep java
tcp6       0      0 127.0.0.1:9200          :::*                    LISTEN      13019/java          
tcp6       0      0 ::1:9200                :::*                    LISTEN      13019/java          
tcp6       0      0 127.0.0.1:9300          :::*                    LISTEN      13019/java          
tcp6       0      0 ::1:9300                :::*                    LISTEN      13019/java  
 
配置如下# Use a descriptive name for the node:
#
# node.name: node-1
#
# Add custom attributes to the node:
#
# node.rack: r1
# Path to directory where to store the data (separate multiple locations by comma):
#
# path.data: /data/es-data
#
# Path to log files:
#
# path.logs: /var/log/elasticsearch/
#
# Lock the memory on startup:
#
# bootstrap.memory_lock: false
# Set the bind address to a specific IP (IPv4 or IPv6):
#
# network.host: 0.0.0.0
#
# Set a custom port for HTTP:
#
# http.port: 9200
 
 
已邀请:

rockybean - Elastic Certified Engineer, ElasticStack Fans,公众号:ElasticTalk

赞同来自: IKE

你的配置不是注释的吗?network.host 那里 

IKE

赞同来自:

感谢rockybean大佬指点 注释#就很尴尬了 

要回复问题请先登录注册