Last active
May 4, 2021 10:13
-
-
Save karussell/3131213 to your computer and use it in GitHub Desktop.
setup ElasticSearch on EC2
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 update | |
| sudo apt-get install openjdk-6-jdk | |
| wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.8.deb | |
| sudo dpkg -i elasticsearch-0.19.8.deb | |
| # if you want to remove it: | |
| sudo dpkg -r elasticsearch | |
| # start script | |
| /etc/init.d/elasticsearch | |
| # log dir | |
| /var/log/elasticsearch | |
| # data dir | |
| /var/lib/elasticsearch | |
| # config dir | |
| /etc/elasticsearch | |
| # prepare ElasticSearch UI | |
| sudo apt-get install apache2 | |
| sudo mkdir /var/www/ui | |
| sudo chown -R ubuntu.www-data /var/www | |
| # now copy ES-HEAD to /var/www/ui |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment