Elasticsearch is a powerful, open-source search and analytics engine that provides real-time data insights. In this tutorial, we will go through the steps to install Elasticsearch on a macOS machine.
Open your terminal.
Check if Java is already installed by typing java -version
in the terminal.
If Java is already installed, the version number will be displayed. If not, please follow the instructions below to install Java.
Download the Java SE Development Kit (JDK) from the official Oracle website: https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
After downloading the file, double-click the .dmg file to mount the disk image.
Run the installer by double-clicking the .pkg file and follow the onscreen prompts to finish the installation.
Once installed, verify that Java is installed by typing java -version
in the terminal again.
sudo mv ~/Downloads/elasticsearch-7.14.0 /usr/local/elasticsearch
Note: Be sure to replace "7.14.0" with the version number you downloaded.
sudo chown -R $USER /usr/local/elasticsearch/
cd /usr/local/elasticsearch/
./bin/elasticsearch
[2021-08-25T10:06:20,441][INFO ][o.e.n.Node ] [YOUR-COMPUTER-NAME] node name [YOUR-COMPUTER-NAME], node ID [nvgTuCdITS2d9Qc-hfJ3qA], cluster name [elasticsearch], roles [transform, data, ml, remote_cluster_client, data_content]
[2021-08-25T10:06:21,072][INFO ][o.e.t.TransportService ] [YOUR-COMPUTER-NAME] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
Congratulations! You have successfully installed Elasticsearch on your macOS machine. In the next steps, you can learn how to configure Elasticsearch and integrate it into your projects.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!