Elasticsearch is an open-source, Java-based search engine that provides a distributed, scalable and speedy search and analytics platform via an HTTP web interface, schema-free JSON-style documents, and built on the Apache Lucene library. For businesses looking for solutions to search their complex and big data, including eCommerce databases easily, Elasticsearch might be a good place to start. For more about Elasticsearch, please check its homepage. When you’re ready to install Elasticsearch on Ubuntu, please follow the steps below:

Install OpenJDK 8

Elasticsearch is based on Java and requires Java to be installed. You can either install Oracle Java Standard Edition 8 or use the open-source version of Java called OpenJDK 8. For this tutorial, we’re going to be installing OpenJDK 8 on Ubuntu. To do that, run the commands below: After that run the commands below to see if Java is successfully installed. You should see a similar message as shown below: When you see the above message, then OpenJDK 8 is installed successfully.

Install Elasticsearch

Now that OpenJDK 8 is installed, run the commands below to add the Elasticsearch GPG key by importing it. After importing its GPG key, run the commands below to add its package repository to Ubuntu. At the time of writing this post, Elasticsearch version 6.6.1 is the latest. If you prefer previous versions, you will have to update the repository package list to include previous packages. Once the Elasticsearch repository is added and enabled, run the commands below to update the apt package list and install Elasticsearch. After installing the Elasticsearch package, you can use the commands below to make sure it automatically starts up when the server boots up and start immediately. Elasticsearch should be installed and ready to use. Out of the box, there’s no authentication and anyone can access its portal via HTTP. It also only listens for traffic on the localhost via port # 9200 If you’re running a single host server and the client connecting from the same server, then no configuration is required. If the clients will be connecting from remote systems, then you’ll want to allow external clients. To do that, open the elasticsearch.yml configuration file: Then search for the line that contains network.host, uncomment it, and change the highlighted value to 0.0.0.0 Save the file and exit. When you’re done, restart Elasticsearchhttps://geekrewind.com/how-to-install-the-office-google-chrome-on-ubuntu-16-04-18-04/ That should do it! Now open your browser and browse to the server hostname or IP address followed by port #9200. You should see the service respond with JSON data. Congratulations! You have successfully installed the Elasticsearch platform on Ubuntu 16.04 | 18.04 LTS servers. You may also like the post below: