1

我正在使用 elasticsearch 在我的 magento 网站中进行搜索。

我已经在我的服务器上安装了弹性搜索,但由于某些安全原因,

Akamai 已阻止 :9200 端口。

我与 Akamai 进行了交谈,他们说您可以使用 :8080 端口来运行弹性搜索。

我尝试通过更改 elastica 库中的默认端口以及 http 和非阻塞 tcp。

但即使我的日志文件中没有任何错误,它仍然无法正常工作。

请建议我们如何实现相同的

以下是我参考的一些发现。

http://www.elasticsearch.org/guide/en/elasticsearch/client/javascript-api/current/host-reference.html

https://github.com/elasticsearch/elasticsearch-ruby/tree/master/elasticsearch-transport

我也修改了path.conf。它看起来像下面提到的:

bin/elasticsearch -f -Des.path.conf=/path/to/config/dir

这将读取 /path/to/config/dir/elasticsearch.yml 和 /path/to/config/dir/elasticsearch.json。

但在我的情况下,我仍然无法看到输出。

4

1 回答 1

0

我相信您需要更改配置文件,弹性搜索配置文件可以在 ES_HOME/config 文件夹下找到。

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-configuration.html

您将需要更改“http.port”

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-http.html#_settings_2

于 2014-08-26T23:40:28.587 回答