【发布时间】:2019-05-07 08:37:23
【问题描述】:
我希望在 gcloud VM 上远程运行我的 elasticsearch,它被配置为在 127.0.0.1 的特定端口 9200 上运行。如何从这个 vm 之外的网站访问它?如果我在 yml 文件中将网络主机更改为 0.0.0.0,即使 9200 端口也无法访问。我该如何克服这个问题?
Changed network.host: [_site_ , _local_ , _global_ ]
_site_ = internal ip given by google cloud vm,
_local_ = 127.0.0.1,
_global_ = found using curl ifconfig.me,
Opened a specific port (9200) and tried to connect with global IP address.
curl to the global ip gives
>Output: Failed to connect to (_global_ ip) port 9200: connection refused.
【问题讨论】:
标签: elasticsearch virtual-machine gcloud