Homebrew
(often simply called brew
). Homebrew is a basic package manager utility for OS X that allows for simple installation of other applications while Homebrew takes care of all the messy stuff in the background. For this reason, it is highly recommended that you use Homebrew to help you install Elasticsearch (or many other packages you may desire down the road).brew
commands to quickly install Elasticsearch and all the appropriate dependencies your system will need:tar.gz
file.tar.gz
file using the tar -xvf [filename]
command:.bash_profile
file in your home directory with your favorite text editor:export
lines to indicate the appropriate environment variables in order for Elasticsearch to function. Your file may have some of these present, and the values may be different, so double-check the values as necessary:ES_HOME
variable indicates the directory you installed (extracted) the elasticsearch.tar.gz
file into.JAVA_HOME
is the home installation directory of your Java package (either JDK or JRE). Verify your own path and modify this variable if necessary.PATH
is, of course, the standard PATH variable that tells OS X where to find many executables. In this case, the export line is effectively adding onto the existing PATH
variable so the system can find where Elasticsearch and Java are located.PATH
variable will be properly updated.elasticsearch
command: