简体   繁体   中英

Cant access elasticsearch server that is running on VirtualBox

I installed elastic-search 1.4.3 by unzipping file into my virtualbox machine :

Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:        14.04
Codename:       trusty

I can successfuly reach http://localhost:9200 from my console on the host machine.

But I cannot reach server from guest machine :

  • i added port forwarding rules on virtualbox (local 9200 -> server 9200)
  • tried to change network params in elasticsearch config file, but nothing change.
  • i stopped firewall on host (ufw disable)

nothing change i cannot access elasticsearch server from guest machine :

anyone can help me ? Thanks a lot

PS : i can hit http://myserver:80 from my guest machine successfully

Please check params in

/etc/elasticsearch/elasticsearch.yml

network.host: 0.0.0.0
http.port: 9200

And port forwarding in VirtualBox.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM