brew tap elastic/tap # Tap elastic
brew search elasticsearch # Will show available versions
brew install elasticsearch@2.4 # install specific version
brew services start elasticsearch@5.6
brew services stop elasticsearch@5.6
curl http://localhost:9200/_cluster/health?pretty
brew link
COMING UP: Install multiple elastic search versions