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/bash | |
| INSTALL_ROOT="/opt" | |
| echo "Installing ElasticSearch..." | |
| cd $INSTALL_ROOT | |
| curl -L http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.1.tar.gz | tar -xz | |
| ln -s elasticsearch-0.20.1/ elasticsearch | |
| echo "Installing ElasticSearch service wrapper..." |
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
| EXEC sys.sp_configure N'show advanced options', N'1' RECONFIGURE WITH OVERRIDE | |
| GO | |
| EXEC sys.sp_configure N'max server memory (MB)', N'2000' | |
| GO | |
| RECONFIGURE WITH OVERRIDE | |
| GO | |
| EXEC sys.sp_configure N'show advanced options', N'0' RECONFIGURE WITH OVERRIDE | |
| GO |
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
| cd ~ | |
| sudo yum update | |
| sudo yum install java-1.7.0-openjdk.i686 -y | |
| wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.9.tar.gz -O elasticsearch.tar.gz | |
| tar -xf elasticsearch.tar.gz | |
| rm elasticsearch.tar.gz | |
| mv elasticsearch-* elasticsearch | |
| sudo mv elasticsearch /usr/local/share |