Last active
October 30, 2015 09:38
-
-
Save ivan-loh/3c34795a7a6974b32f1e to your computer and use it in GitHub Desktop.
creating a search server using elastic search
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
| #!/bin/sh | |
| sudo add-apt-repository -y ppa:keithw/mosh | |
| # Prepare Installation for Elasticsaerch | |
| sudo add-apt-repository -y ppa:webupd8team/java | |
| wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
| echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list | |
| sudo apt-get update -y && sudo apt-get upgrade -y | |
| sudo echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections | |
| sudo apt-get install -y htop curl git mosh oracle-java8-installer maven elasticsearch | |
| # Install elasticsearch plugins | |
| cd /usr/share/elasticsearch | |
| sudo ./bin/plugin install elasticsearch/elasticsearch-mapper-attachments/3.0.2 | |
| # Install Kibana | |
| wget https://download.elastic.co/kibana/kibana/kibana-4.2.0-linux-x64.tar.gz | |
| tar xvzf kibana-4.2.0-linux-x64.tar.gz | |
| cd kibana-4.2.0-linux-x64/ | |
| ./bin/kibana plugin --install elastic/sense | |
| # Misc | |
| sudo dpkg-reconfigure tzdata | |
| ssh-keygen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment