Created
March 17, 2022 08:30
-
-
Save nikos83/a1ad8ce014e98e031c958640b80bf293 to your computer and use it in GitHub Desktop.
How to install older Elasticsearch via version manager on Catalina and older Java8
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
# First install elasticsearch manager from | |
https://github.com/duydo/evm | |
sudo curl -o /usr/local/bin/evm https://raw.githubusercontent.com/duydo/evm/master/evm | |
sudo chmod +x /usr/local/bin/evm | |
evm install 6.8.20 | |
# select default version | |
evm use 6.8.20 | |
# start elasticsearch server | |
evm start | |
# in case you don't have java and java_home you'll get error | |
# warning: Falling back to java on path. This behavior is deprecated. Specify JAVA_HOME | |
# No Java runtime present, requesting install. | |
# install third party repo | |
brew tap adoptopenjdk/openjdk | |
brew install --cask adoptopenjdk8 | |
evm start | |
# you may get JAVA_HOME waring but all will work as it should | |
# enjoy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment