{"id":724,"date":"2021-06-28T11:42:22","date_gmt":"2021-06-28T10:42:22","guid":{"rendered":"http:\/\/blog.chen-hongyi.com\/?p=724"},"modified":"2021-06-28T11:42:22","modified_gmt":"2021-06-28T10:42:22","slug":"how-to-install-and-uninstall-elasticsearch-on-mac","status":"publish","type":"post","link":"https:\/\/chen-hongyi.com\/?p=724","title":{"rendered":"How to install and uninstall Elasticsearch on Mac"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">How to install: <br><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>brew tap elastic\/tap\nbrew install elastic\/tap\/elasticsearch-full\n<\/code><\/pre>\n\n\n\n<p>From: <\/p>\n\n\n\n<p><a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/brew.html\">https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/brew.html<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to uninstall<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/usr\/bin\/env sh\n\n# checks to see if running \nlaunchctl list | grep elasticsearch\n \nlaunchctl unload ~\/Library\/LaunchAgents\/homebrew.mxcl.elasticsearch.plist\nlaunchctl remove homebrew.mxcl.elasticsearch\n\npkill -f elasticsearch\n\nrm -f ~\/Library\/LaunchAgents\/homebrew.mxcl.elasticsearch.plist\n\nbrew uninstall elasticsearch\n\n# double check existence\nls -al \/usr\/local\/bin\/elasticsearch*\nls -al ~\/Library\/LaunchAgents<\/code><\/pre>\n\n\n\n<p>From: <\/p>\n\n\n\n<p><a href=\"https:\/\/gist.github.com\/jkubacki\/e2dd904bd648b0bd4554\">https:\/\/gist.github.com\/jkubacki\/e2dd904bd648b0bd4554<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to install: From: https:\/\/www.elasti &hellip; <a href=\"https:\/\/chen-hongyi.com\/?p=724\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-724","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts\/724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=724"}],"version-history":[{"count":1,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts\/724\/revisions"}],"predecessor-version":[{"id":725,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=\/wp\/v2\/posts\/724\/revisions\/725"}],"wp:attachment":[{"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chen-hongyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}