Created
July 23, 2014 07:43
-
-
Save pangkalizer/bc0ee5521489e3b23908 to your computer and use it in GitHub Desktop.
elasticsearch on ubuntu 14.14
This file contains hidden or 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
sudo apt-get install openjdk-7-jre-headless -y | |
sudo wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add - | |
# add the following line to /etc/apt/sources.list | |
deb http://packages.elasticsearch.org/elasticsearch/1.2/debian stable main | |
sudo apt-get update | |
sudo apt-get install elasticsearch | |
sudo update-rc.d elasticsearch defaults 95 10 | |
# remove public access!!! | |
# edit /etc/elasticsearch/elasticsearch.yml | |
network.bind_host: localhost | |
script.disable_dynamic: true | |
# start | |
sudo /etc/init.d/elasticsearch start | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment