Last active
August 29, 2015 14:21
-
-
Save DinisCruz/29b080504dda252e74f0 to your computer and use it in GitHub Desktop.
Commands to install elastic search on Vagrant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant init ubuntu/trusty64 | |
vagrant up | |
vagrant ssh | |
### inside vagrant SSH | |
# JDK | |
sudo apt-get install openjdk-7-jdk openjdk-7-jre-headless | |
# Elastic Search | |
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.5.2.deb | |
sudo dpkg -i elasticsearch-1.1.1.deb | |
sudo /etc/init.d/elasticsearch start | |
curl http://localhost:9200 | |
sudo update-rc.d elasticsearch defaults 95 10 | |
sudo service elasticsearch start | |
# Logstash | |
wget http://download.elastic.co/logstash/logstash/packages/debian/logstash_1.5.0-1_all.deb | |
sudo dpkg -i logstash_1.5.0-1_all.deb | |
ls /opt/logstash/ | |
# Marvel | |
cd /usr/share/elasticsearch/ | |
sudo ./bin/plugin -i elasticsearch/marvel/latest | |
curl http://localhost:9200/_plugin/marvel/ | |
# Kibana | |
wget https://download.elastic.co/kibana/kibana/kibana-4.0.2-linux-x64.tar.gz | |
sudo mkdir -p /srv/kibana | |
sudo tar -C /srv/kibana -zxf kibana-4.0.2-linux-x64.tar.gz --strip | |
sudo vim /etc/init/kibana.conf # see file below | |
sudo start kibana | |
curl 0.0.0.0:5601 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Kibana (node)" | |
stop on shutdown | |
respawn | |
respawn limit 20 5 | |
script | |
export HOME="/home/vagrant" | |
exec sudo /srv/kibana/bin/kibana >> /var/log/kibana.log 2>&1 | |
end script | |
post-start script | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment