配置ElasticSearch的端口号 [英] Configure port number of ElasticSearch

查看:2629
本文介绍了配置ElasticSearch的端口号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用ElasticSearch 0.20.2并使用

We are using ElasticSearch 0.20.2 and run the daemon using


bin / elasticsearch [-f]

bin/elasticsearch [-f]

bin / elasticsearch脚本自行设置ES_HOME,似乎
无法影响配置文件的读取路径。 ES始终从以下位置读取设置:

The bin/elasticsearch script sets ES_HOME on its own and there seem to be no way to influence the path of the configuration file read. ES always reads the settings from


$ ES_HOME / config / elasticsearch.yml

$ES_HOME/config/elasticsearch.yml

但是,我必须能够指定我们自己的配置文件的路径,而不会
覆盖现有的 elasticsearch.yml

However I must be able for specifying the path to our own configuration file without overriding the existing elasticsearch.yml that comes with ElasticSearch.

我该怎么做?

推荐答案

您必须在 elasticsearch.yml 文件中插入以下行。

You have to insert following line in your elasticsearch.yml file.

http.port: port_number

我在设置中做了同样的操作,对我有用。

I did same in my setup, its working for me.

这篇关于配置ElasticSearch的端口号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆