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
bash -c ' | |
UBUNTU_MIRROR=us-west-1.ec2.archive.ubuntu.com.s3.amazonaws.com | |
RUBY_VERSION=1.9.3-p194 | |
echo "Updating the Ubuntu Mirror Source" | |
touch /etc/apt/sources.list | |
if [ "$?" != "0" ]; then | |
echo "Failed to touch /etc/apt/sources.list. are you root?" | |
exit 1 |
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
cd ~ | |
sudo yum update | |
sudo yum java-1.6.0-openjdk.i686 -y | |
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.6.tar.gz -O elasticsearch.tar.gz | |
tar -xf elasticsearch.tar.gz | |
rm elasticsearch.tar.gz | |
sudo mv elasticsearch-* elasticsearch | |
sudo mv elasticsearch /usr/local/share |