Forked from govindpatel/Elasticsearch install and uninstall.txt
Created
August 1, 2018 08:45
-
-
Save chaitu87/61b79cb3944f656d5f5376252d9a191e to your computer and use it in GitHub Desktop.
Mac uninstall elasticsearch / install
This file contains hidden or 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
#!/usr/bin/env sh | |
# checks to see if running | |
launchctl list | grep elasticsearch | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist | |
launchctl remove homebrew.mxcl.elasticsearch | |
pkill -f elasticsearch | |
rm -f ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist | |
brew uninstall elasticsearch | |
# double check existence | |
ls -al /usr/local/bin/elasticsearch* | |
ls -al ~/Library/LaunchAgents | |
# remove the data folder for elasticsearch | |
# to list the location of data | |
brew info elasticsearch | |
#install | |
brew search elasticsearch | |
#installing elasticsearch17 | |
brew install homebrew/versions/elasticsearch17 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment