LoginSignup
22
23

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 を上記のように指定する

22
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
22
23