24
23

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

elasticsearchでlocalhost以外からのアクセスを許可する方法

Last updated at Posted at 2017-04-19

elasticsearch.ymlの network.host0.0.0.0 にすることで他のサーバーからでもアクセス可能になる。

elasticsearch.yml
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 0.0.0.0
http.port: 9200
transport.host: localhost
transport.tcp.port: 9300

ログファイルに node validation exception bootstrap checks failed というエラーが出て起動できない場合は、transport.hosttransport.tcp.port を上記のように指定する

24
23
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24
23

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?