elasticsearch.yml 配置如下
network.host: 0.0.0.0
http.port: 9200
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
试过将network.host : 改为内网地址 192.168.1.XX 局域网也无法访问
在服务器本地是可以的,
[es@localhost bin]$ curl http://192.168.1.XX:9200
{
"name" : "OTNhoTZ",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "pzZj7K6KRkqOFMyjBXxaWg",
"version" : {
"number" : "5.2.2",
"build_hash" : "f9d9b74",
"build_date" : "2017-02-24T17:26:45.835Z",
"build_snapshot" : false,
"lucene_version" : "6.4.1"
},
"tagline" : "You Know, for Search"
}
network.host: 0.0.0.0
http.port: 9200
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
试过将network.host : 改为内网地址 192.168.1.XX 局域网也无法访问
在服务器本地是可以的,
[es@localhost bin]$ curl http://192.168.1.XX:9200
{
"name" : "OTNhoTZ",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "pzZj7K6KRkqOFMyjBXxaWg",
"version" : {
"number" : "5.2.2",
"build_hash" : "f9d9b74",
"build_date" : "2017-02-24T17:26:45.835Z",
"build_snapshot" : false,
"lucene_version" : "6.4.1"
},
"tagline" : "You Know, for Search"
}
1 个回复
AlexLi
赞同来自: