Skip to content

Instantly share code, notes, and snippets.

@firstrow
Forked from Globegitter/es.sh
Last active August 29, 2015 14:18

Revisions

  1. @markusdap markusdap revised this gist Jan 28, 2015. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    cd ~
    ##If you want to install OpenJDK
    sudo apt-get update
    sudo apt-get install openjdk-8-jre-headless -y
    #sudo apt-get update
    #sudo apt-get install openjdk-8-jre-headless -y

    ###Or if you want to install Oracle JDK, which seems to have slightly better performance
    sudo add-apt-repository ppa:webupd8team/java
    @@ -10,8 +10,8 @@ sudo apt-get install oracle-java8-installer

    ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below

    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.2.deb
    sudo dpkg -i elasticsearch-1.3.2.deb
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.2.deb
    sudo dpkg -i elasticsearch-1.4.2.deb

    ### NOT starting elasticsearch by default on bootup, please execute
    sudo update-rc.d elasticsearch defaults 95 10
  2. @markusdap markusdap revised this gist Aug 30, 2014. 1 changed file with 7 additions and 15 deletions.
    22 changes: 7 additions & 15 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -10,22 +10,14 @@ sudo apt-get install oracle-java8-installer

    ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below

    # NEW WAY / EASY WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.2.deb
    sudo dpkg -i elasticsearch-1.3.2.deb

    # OLD WAY / HARD WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.tar.gz
    tar -xf elasticsearch-1.1.1.tar.gz
    rm elasticsearch-1.1.1.tar.gz
    sudo mv elasticsearch-* elasticsearch
    sudo mv elasticsearch /usr/local/share
    ### NOT starting elasticsearch by default on bootup, please execute
    sudo update-rc.d elasticsearch defaults 95 10
    ### In order to start elasticsearch, execute
    sudo /etc/init.d/elasticsearch start

    curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz
    sudo mv *servicewrapper*/service /usr/local/share/elasticsearch/bin/
    rm -Rf *servicewrapper*
    sudo /usr/local/share/elasticsearch/bin/service/elasticsearch install
    sudo ln -s `readlink -f /usr/local/share/elasticsearch/bin/service/elasticsearch` /usr/local/bin/rcelasticsearch

    sudo service elasticsearch start
    #curl http://localhost:9200
    #To test it all worked:
    #curl http://localhost:9200
    #Should return some JSON Object including the version number
  3. @markusdap markusdap revised this gist Aug 30, 2014. 1 changed file with 9 additions and 3 deletions.
    12 changes: 9 additions & 3 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,18 @@
    cd ~
    ##If you want to install OpenJDK
    sudo apt-get update
    sudo apt-get install openjdk-7-jre-headless -y
    sudo apt-get install openjdk-8-jre-headless -y

    ###Or if you want to install Oracle JDK, which seems to have slightly better performance
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java8-installer

    ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below

    # NEW WAY / EASY WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.deb
    sudo dpkg -i elasticsearch-1.1.1.deb
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.2.deb
    sudo dpkg -i elasticsearch-1.3.2.deb

    # OLD WAY / HARD WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.tar.gz
  4. wingdspur revised this gist May 13, 2014. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -5,13 +5,13 @@ sudo apt-get install openjdk-7-jre-headless -y
    ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below

    # NEW WAY / EASY WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.0.deb
    sudo dpkg -i elasticsearch-1.1.0.deb
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.deb
    sudo dpkg -i elasticsearch-1.1.1.deb

    # OLD WAY / HARD WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.0.tar.gz
    tar -xf elasticsearch-1.1.0.tar.gz
    rm elasticsearch-1.1.0.tar.gz
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.tar.gz
    tar -xf elasticsearch-1.1.1.tar.gz
    rm elasticsearch-1.1.1.tar.gz
    sudo mv elasticsearch-* elasticsearch
    sudo mv elasticsearch /usr/local/share

  5. wingdspur revised this gist Mar 27, 2014. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -5,13 +5,13 @@ sudo apt-get install openjdk-7-jre-headless -y
    ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below

    # NEW WAY / EASY WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
    sudo dpkg -i elasticsearch-1.0.1.deb
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.0.deb
    sudo dpkg -i elasticsearch-1.1.0.deb

    # OLD WAY / HARD WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.tar.gz
    tar -xf elasticsearch-1.0.1.tar.gz
    rm elasticsearch-1.0.1.tar.gz
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.0.tar.gz
    tar -xf elasticsearch-1.1.0.tar.gz
    rm elasticsearch-1.1.0.tar.gz
    sudo mv elasticsearch-* elasticsearch
    sudo mv elasticsearch /usr/local/share

  6. wingdspur revised this gist Feb 28, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion es.sh
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ sudo apt-get install openjdk-7-jre-headless -y
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
    sudo dpkg -i elasticsearch-1.0.1.deb

    # OLD WAY / HARD WAY or for non debian based linux distros
    # OLD WAY / HARD WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.tar.gz
    tar -xf elasticsearch-1.0.1.tar.gz
    rm elasticsearch-1.0.1.tar.gz
  7. wingdspur revised this gist Feb 28, 2014. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion es.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@ cd ~
    sudo apt-get update
    sudo apt-get install openjdk-7-jre-headless -y


    ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below

    # NEW WAY / EASY WAY
  8. wingdspur revised this gist Feb 28, 2014. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -6,13 +6,13 @@ sudo apt-get install openjdk-7-jre-headless -y
    ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below

    # NEW WAY / EASY WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.9.deb
    sudo dpkg -i elasticsearch-0.90.9.deb
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
    sudo dpkg -i elasticsearch-1.0.1.deb

    # OLD WAY / HARD WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.9.tar.gz
    tar -xf elasticsearch-0.90.9.tar.gz
    rm elasticsearch-0.90.9.tar.gz
    # OLD WAY / HARD WAY or for non debian based linux distros
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.tar.gz
    tar -xf elasticsearch-1.0.1.tar.gz
    rm elasticsearch-1.0.1.tar.gz
    sudo mv elasticsearch-* elasticsearch
    sudo mv elasticsearch /usr/local/share

  9. Bryce Johnston revised this gist Dec 23, 2013. 1 changed file with 5 additions and 6 deletions.
    11 changes: 5 additions & 6 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -6,14 +6,13 @@ sudo apt-get install openjdk-7-jre-headless -y
    ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below

    # NEW WAY / EASY WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.7.deb
    sudo dpkg -i elasticsearch-0.90.7.deb
    sudo service elasticsearch start
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.9.deb
    sudo dpkg -i elasticsearch-0.90.9.deb

    # OLD WAY / HARD WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.7.tar.gz
    tar -xf elasticsearch-0.90.7.tar.gz
    rm elasticsearch-0.90.7.tar.gz
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.9.tar.gz
    tar -xf elasticsearch-0.90.9.tar.gz
    rm elasticsearch-0.90.9.tar.gz
    sudo mv elasticsearch-* elasticsearch
    sudo mv elasticsearch /usr/local/share

  10. Bryce Johnston revised this gist Nov 19, 2013. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -6,14 +6,14 @@ sudo apt-get install openjdk-7-jre-headless -y
    ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below

    # NEW WAY / EASY WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.5.deb
    sudo dpkg -i elasticsearch-0.90.5.deb
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.7.deb
    sudo dpkg -i elasticsearch-0.90.7.deb
    sudo service elasticsearch start

    # OLD WAY / HARD WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.5.tar.gz
    tar -xf elasticsearch-0.90.5.tar.gz
    rm elasticsearch-0.90.5.tar.gz
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.7.tar.gz
    tar -xf elasticsearch-0.90.7.tar.gz
    rm elasticsearch-0.90.7.tar.gz
    sudo mv elasticsearch-* elasticsearch
    sudo mv elasticsearch /usr/local/share

  11. Bryce Johnston revised this gist Sep 18, 2013. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -6,14 +6,14 @@ sudo apt-get install openjdk-7-jre-headless -y
    ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below

    # NEW WAY / EASY WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.deb
    sudo dpkg -i elasticsearch-0.90.0.deb
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.5.deb
    sudo dpkg -i elasticsearch-0.90.5.deb
    sudo service elasticsearch start

    # OLD WAY / HARD WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.tar.gz
    tar -xf elasticsearch-0.90.0.tar.gz
    rm elasticsearch-0.90.0.tar.gz
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.5.tar.gz
    tar -xf elasticsearch-0.90.5.tar.gz
    rm elasticsearch-0.90.5.tar.gz
    sudo mv elasticsearch-* elasticsearch
    sudo mv elasticsearch /usr/local/share

  12. @brycejohnston brycejohnston revised this gist May 28, 2013. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -6,14 +6,14 @@ sudo apt-get install openjdk-7-jre-headless -y
    ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below

    # NEW WAY / EASY WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.6.deb
    sudo dpkg -i elasticsearch-0.20.6.deb
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.deb
    sudo dpkg -i elasticsearch-0.90.0.deb
    sudo service elasticsearch start

    # OLD WAY / HARD WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.6.tar.gz
    tar -xf elasticsearch.tar.gz
    rm elasticsearch.tar.gz
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.tar.gz
    tar -xf elasticsearch-0.90.0.tar.gz
    rm elasticsearch-0.90.0.tar.gz
    sudo mv elasticsearch-* elasticsearch
    sudo mv elasticsearch /usr/local/share

  13. @brycejohnston brycejohnston revised this gist Apr 6, 2013. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,15 @@ cd ~
    sudo apt-get update
    sudo apt-get install openjdk-7-jre-headless -y


    ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below

    # NEW WAY / EASY WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.6.deb
    sudo dpkg -i elasticsearch-0.20.6.deb
    sudo service elasticsearch start

    # OLD WAY / HARD WAY
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.6.tar.gz
    tar -xf elasticsearch.tar.gz
    rm elasticsearch.tar.gz
  14. @brycejohnston brycejohnston revised this gist Apr 1, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion es.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@ cd ~
    sudo apt-get update
    sudo apt-get install openjdk-7-jre-headless -y

    wget https://github.com/elasticsearch/elasticsearch/archive/v0.20.1.tar.gz -O elasticsearch.tar.gz
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.6.tar.gz
    tar -xf elasticsearch.tar.gz
    rm elasticsearch.tar.gz
    sudo mv elasticsearch-* elasticsearch
  15. @brycejohnston brycejohnston revised this gist Dec 26, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    cd ~
    sudo apt-get update
    sudo apt-get install openjdk-7-jre -y
    sudo apt-get install openjdk-7-jre-headless -y

    wget https://github.com/elasticsearch/elasticsearch/archive/v0.20.1.tar.gz -O elasticsearch.tar.gz
    tar -xf elasticsearch.tar.gz
    @@ -9,7 +9,7 @@ sudo mv elasticsearch-* elasticsearch
    sudo mv elasticsearch /usr/local/share

    curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz
    mv *servicewrapper*/service /usr/local/share/elasticsearch/bin/
    sudo mv *servicewrapper*/service /usr/local/share/elasticsearch/bin/
    rm -Rf *servicewrapper*
    sudo /usr/local/share/elasticsearch/bin/service/elasticsearch install
    sudo ln -s `readlink -f /usr/local/share/elasticsearch/bin/service/elasticsearch` /usr/local/bin/rcelasticsearch
  16. @brycejohnston brycejohnston revised this gist Dec 26, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion es.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@ cd ~
    sudo apt-get update
    sudo apt-get install openjdk-7-jre -y

    wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.0.tar.gz -O elasticsearch.tar.gz
    wget https://github.com/elasticsearch/elasticsearch/archive/v0.20.1.tar.gz -O elasticsearch.tar.gz
    tar -xf elasticsearch.tar.gz
    rm elasticsearch.tar.gz
    sudo mv elasticsearch-* elasticsearch
  17. @brycejohnston brycejohnston revised this gist Mar 13, 2012. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion es.sh
    Original file line number Diff line number Diff line change
    @@ -14,4 +14,5 @@ rm -Rf *servicewrapper*
    sudo /usr/local/share/elasticsearch/bin/service/elasticsearch install
    sudo ln -s `readlink -f /usr/local/share/elasticsearch/bin/service/elasticsearch` /usr/local/bin/rcelasticsearch

    sudo service elasticsearch start
    sudo service elasticsearch start
    #curl http://localhost:9200
  18. @brycejohnston brycejohnston revised this gist Mar 13, 2012. 1 changed file with 3 additions and 7 deletions.
    10 changes: 3 additions & 7 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,8 @@
    cd ~
    sudo apt-get update
    sudo apt-get install unzip curl python-software-properties -y
    #sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
    sudo add-apt-repository ppa:ferramroberto/java
    sudo apt-get update
    sudo apt-get install sun-java6-jre sun-java6-plugin -y
    sudo apt-get install openjdk-7-jre -y

    wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.7.tar.gz -O elasticsearch.tar.gz
    wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.0.tar.gz -O elasticsearch.tar.gz
    tar -xf elasticsearch.tar.gz
    rm elasticsearch.tar.gz
    sudo mv elasticsearch-* elasticsearch
    @@ -18,4 +14,4 @@ rm -Rf *servicewrapper*
    sudo /usr/local/share/elasticsearch/bin/service/elasticsearch install
    sudo ln -s `readlink -f /usr/local/share/elasticsearch/bin/service/elasticsearch` /usr/local/bin/rcelasticsearch

    #curl http://localhost:9200
    sudo service elasticsearch start
  19. @aaronshaf aaronshaf revised this gist Mar 1, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,8 @@ cd ~
    sudo apt-get update
    sudo apt-get install unzip curl python-software-properties -y
    #sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
    sudo add-apt-repository ppa:ferramroberto/java
    sudo apt-get update
    sudo apt-get install sun-java6-jre sun-java6-plugin -y

    wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.7.tar.gz -O elasticsearch.tar.gz
  20. @aaronshaf aaronshaf revised this gist Mar 1, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    cd ~
    sudo apt-get install unzip curl python-software-properties -y
    sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
    sudo apt-get update
    sudo apt-get install unzip curl python-software-properties -y
    #sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
    sudo apt-get install sun-java6-jre sun-java6-plugin -y

    wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.7.tar.gz -O elasticsearch.tar.gz
  21. @aaronshaf aaronshaf revised this gist Mar 1, 2012. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,5 @@
    cd ~
    sudo apt-get install unzip -y
    sudo apt-get install python-software-properties -y
    sudo apt-get install unzip curl python-software-properties -y
    sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
    sudo apt-get update
    sudo apt-get install sun-java6-jre sun-java6-plugin -y
  22. @aaronshaf aaronshaf revised this gist Mar 1, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion es.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    cd ~
    sudo apt-get install unzip
    sudo apt-get install unzip -y
    sudo apt-get install python-software-properties -y
    sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
    sudo apt-get update
  23. @aaronshaf aaronshaf revised this gist Mar 1, 2012. No changes.
  24. @aaronshaf aaronshaf revised this gist Mar 1, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion es.sh
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
    sudo apt-get update
    sudo apt-get install sun-java6-jre sun-java6-plugin -y

    wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.6.tar.gz -O elasticsearch.tar.gz
    wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.7.tar.gz -O elasticsearch.tar.gz
    tar -xf elasticsearch.tar.gz
    rm elasticsearch.tar.gz
    sudo mv elasticsearch-* elasticsearch
  25. @aaronshaf aaronshaf revised this gist Sep 3, 2011. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    cd ~
    sudo apt-get install unzip
    sudo apt-get install python-software-properties -y
    sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
  26. @aaronshaf aaronshaf revised this gist Sep 3, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion es.sh
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,4 @@ rm -Rf *servicewrapper*
    sudo /usr/local/share/elasticsearch/bin/service/elasticsearch install
    sudo ln -s `readlink -f /usr/local/share/elasticsearch/bin/service/elasticsearch` /usr/local/bin/rcelasticsearch

    #curl http://localhost:9200
    #curl http://localhost:9200
  27. @invalid-email-address Anonymous created this gist Sep 3, 2011.
    19 changes: 19 additions & 0 deletions es.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    sudo apt-get install unzip
    sudo apt-get install python-software-properties -y
    sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
    sudo apt-get update
    sudo apt-get install sun-java6-jre sun-java6-plugin -y

    wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.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

    curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz
    mv *servicewrapper*/service /usr/local/share/elasticsearch/bin/
    rm -Rf *servicewrapper*
    sudo /usr/local/share/elasticsearch/bin/service/elasticsearch install
    sudo ln -s `readlink -f /usr/local/share/elasticsearch/bin/service/elasticsearch` /usr/local/bin/rcelasticsearch

    #curl http://localhost:9200