2017-04-07 68 views
0

我已經在我的Windows 10的機器最近在和之後的安裝過程後,當我訪問http://localhost:9200 ES不響應,並從Chrome的安裝ElasticSearch 5.3。從elasticsearch無響應通感和瀏覽器

然而,當我在命令行上使用curl 'http://localhost:9200',它發送這一:

{ 
    "name" : "test", 
    "cluster_name" : "my-application", 
    "cluster_uuid" : "9-wvh6UXTHSKmkdpblqyyA", 
    "version" : { 
    "number" : "5.3.0", 
    "build_hash" : "3adb13b", 
    "build_date" : "2017-03-23T03:31:50.652Z", 
    "build_snapshot" : false, 
    "lucene_version" : "6.4.1" 
    }, 
    "tagline" : "You Know, for Search" 
} 

這表明ES運行/正確配置(?)。

我還配置network.host:0.0.0.0/127.0.0.1/::elasticsearch.yml仍然沒有效果的。

下面是最新的日誌信息:

[2017-04-07T18:21:06,481][INFO ][o.e.n.Node    ] [test] initializing ... 
[2017-04-07T18:21:06,633][INFO ][o.e.e.NodeEnvironment ] [test] using [1] data paths, mounts [[OSDisk (C:)]], net usable_space [129.2gb], net total_space [232.3gb], spins? [unknown], types [NTFS] 
[2017-04-07T18:21:06,634][INFO ][o.e.e.NodeEnvironment ] [test] heap size [1.9gb], compressed ordinary object pointers [true] 
[2017-04-07T18:21:06,681][INFO ][o.e.n.Node    ] [test] node name [test], node ID [Ab5g3zN0S7qNOuP_asF-iQ] 
[2017-04-07T18:21:06,682][INFO ][o.e.n.Node    ] [test] version[5.3.0], pid[312], build[3adb13b/2017-03-23T03:31:50.652Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_121/25.121-b13] 
[2017-04-07T18:21:08,288][INFO ][o.e.p.PluginsService  ] [test] loaded module [aggs-matrix-stats] 
[2017-04-07T18:21:08,289][INFO ][o.e.p.PluginsService  ] [test] loaded module [ingest-common] 
[2017-04-07T18:21:08,291][INFO ][o.e.p.PluginsService  ] [test] loaded module [lang-expression] 
[2017-04-07T18:21:08,291][INFO ][o.e.p.PluginsService  ] [test] loaded module [lang-groovy] 
[2017-04-07T18:21:08,292][INFO ][o.e.p.PluginsService  ] [test] loaded module [lang-mustache] 
[2017-04-07T18:21:08,294][INFO ][o.e.p.PluginsService  ] [test] loaded module [lang-painless] 
[2017-04-07T18:21:08,295][INFO ][o.e.p.PluginsService  ] [test] loaded module [percolator] 
[2017-04-07T18:21:08,296][INFO ][o.e.p.PluginsService  ] [test] loaded module [reindex] 
[2017-04-07T18:21:08,296][INFO ][o.e.p.PluginsService  ] [test] loaded module [transport-netty3] 
[2017-04-07T18:21:08,298][INFO ][o.e.p.PluginsService  ] [test] loaded module [transport-netty4] 
[2017-04-07T18:21:08,299][INFO ][o.e.p.PluginsService  ] [test] loaded plugin [ltr-query] 
[2017-04-07T18:21:11,330][INFO ][o.e.n.Node    ] [test] initialized 
[2017-04-07T18:21:11,330][INFO ][o.e.n.Node    ] [test] starting ... 
[2017-04-07T18:21:11,612][INFO ][o.e.t.TransportService ] [test] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}, {[::1]:9300} 
[2017-04-07T18:21:14,657][INFO ][o.e.c.s.ClusterService ] [test] new_master {test}{Ab5g3zN0S7qNOuP_asF-iQ}{XYHTUZ8AQN6kYrEPLChFNg}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined) 
[2017-04-07T18:21:14,826][INFO ][o.e.h.n.Netty4HttpServerTransport] [test] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200}, {[::1]:9200} 
[2017-04-07T18:21:14,826][INFO ][o.e.n.Node    ] [test] started 
[2017-04-07T18:21:14,982][INFO ][o.e.g.GatewayService  ] [test] recovered [1] indices into cluster_state 
[2017-04-07T18:21:15,510][INFO ][o.e.c.r.a.AllocationService] [test] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[tmdb][0]] ...]). 
+0

您是否檢查Elasticsearch日誌?你可以在這裏發佈這些日誌信息嗎? – avr

+0

@avr - 添加了最新的日誌信息。 – svynsaenz

+0

日誌看起來不錯。您是否嘗試從Kibana(Dev_Tools)訪問ES? – avr

回答

0

明白了!從Network Settings文檔引用,我試圖運行它使用此腳本:elasticsearch.bat -E network.host=_local_,它的工作!

我還更改了配置文件(./config/elasticsearch.yml)。只需取消該行的註釋並將其更改爲network.host: _local_。之後,我直接跑elasticsearch.bat

OR

把它只是簡單地發表意見network.host線。