Forked from jkubacki/gist:e2dd904bd648b0bd4554
Last active
December 29, 2019 02:21
-
-
Save osazemeu/4bdf00813d6bc1b31116150231cb69f2 to your computer and use it in GitHub Desktop.
Mac uninstall elasticsearch
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 -rf ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist | |
rm -rf /usr/local/var/lib/elasticsearch/ | |
rm -rf /usr/local/var/log/elasticsearch/elasticsearch_osazemeusen.log | |
rm -rf /usr/local/var/elasticsearch/plugins/ | |
rm -rf /usr/local/etc/elasticsearch/ | |
brew uninstall elasticsearch | |
# double check existence | |
ls -al /usr/local/bin/elasticsearch* | |
ls -al ~/Library/LaunchAgents | |
brew tap elastic/tap | |
brew install elastic/tap/elasticsearch-full | |
brew install elastic/tap/kibana-full |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment