Skip to content

Instantly share code, notes, and snippets.

@RobertoBarros
Last active August 29, 2015 14:20
Show Gist options
  • Save RobertoBarros/cd77b724893fb0eb9d1a to your computer and use it in GitHub Desktop.
Save RobertoBarros/cd77b724893fb0eb9d1a to your computer and use it in GitHub Desktop.
Instalando Elasticsearch 0.90.3 com o Homebrew

#Instalando elasticsearch 0.90.3 com o Homebrew

####1. Unload e Unlink da versão atual

launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist

brew unlink elasticsearch

####2. Vai para o repositório do Homebrew

cd /usr/local/Library

####3. Encontra o commit da versão 0.90.3 (Pode ir direto para o próximo passo)

brew log elasticsearch | grep -C4 0.90.3
commit c2fd809a99c7fe44c9accb2091395bb49c3feed1
Author: Felix Bünemann <buenemann@louis.info>
Date:   Wed Aug 14 17:00:17 2013 +0200

    elasticsearch 0.90.3

    Closes #21892.

    Signed-off-by: Adam Vandenberg <flangy@gmail.com>

####4. Checkout da fórmula do elasticsearch 0.90.3

git checkout c2fd809a99 /usr/local/Library/Formula/elasticsearch.rb

####5. Instala o Elasticsearch

brew install elasticsearch

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
$ elasticsearch -v
Version: 0.90.3, Build: 5c38d60/2013-08-06T13:18:31Z, JVM: 1.7.0_45

####6. Limpa o repositório do Homebrew

git reset HEAD Formula/elasticsearch.rb
git checkout -- .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment