2014-03-13 63 views
3

我想指定ElasticSearch用於HTTP通信的確切端口。我該怎麼做?在配置文件中,它表示默認監聽端口範圍。我怎樣才能限制這個端口範圍只有1個端口?ElasticSearch - 指定確切的端口(無端口範圍)

Elasticsearch, by default, binds itself to the 0.0.0.0 address, and listens 
on port [9200-9300] for HTTP traffic and on port [9300-9400] for node-to-node 
communication. (the range means that if the port is busy, it will automatically 
try the next port). 

回答

3

在config文件夾中有一個名爲「elasticsearch.Yml」的文件。在港口的評論說, 參數..就在http.port刪除哈希和端口值添加到它..

http.port : 5000 

您可以同時爲TCP和HTTP

做到這一點