[英]How to use Elasticsearch Marvel via vagrant?
I use vagrant (box with Ubuntu). 我使用无业游民(Ubuntu中的包装盒)。 I have Elasticsearch installed on it.
我已经安装了Elasticsearch。 It available at
它可以在
localhost:9200
in my Ubuntu. 在我的Ubuntu中。 Marvel available at
奇迹可在
http://localhost:9200/_plugin/marvel/
How can I enter Marvel on my host? 如何在主机上输入Marvel? I usually use the following code to create virtual host for my sites:
我通常使用以下代码为我的站点创建虚拟主机:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName some.192.168.56.56.xip.io
DocumentRoot /var/www/some
<Directory /var/www/some>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/some-192.168.56.56.xip.io-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/some-192.168.56.56.xip.io-access.log combined
</VirtualHost>
No need of using virtual hosts at all. 完全不需要使用虚拟主机。 The only things needed to work with elasticsearch via Vagrant:
通过Vagrant与Elasticsearch结合使用的唯一条件是:
1) 'config.vm.network :forwarded_port, guest: 9200, host: 9200' in Vagrantfile 1)Vagrantfile中的'config.vm.network:forwarded_port,guest:9200,host:9200'
2) Need to add 'network.bind_host: 0.0.0.0 ' in ES config (I had 'localhost' here - that was my problem) 2)需要在ES配置中添加``network.bind_host: 0.0.0.0 ''(我在这里有``localhost''-这是我的问题)
3) Restart Elasticsearch. 3)重新启动Elasticsearch。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.