-
-
Save nandooliveira/195fda9f29348374d7671d80aaa33156 to your computer and use it in GitHub Desktop.
Mac uninstall elasticsearch
This file contains 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment