In this tutorial, we will look at how we can install Elasticsearch on Ubuntu 18.04. Elasticsearch is an open-source distributed full-text search and analytics engine. It supports RESTful operations (GET, POST requests) and allows you to store, search, and analyze big volumes of data in real-time.
在本教程中,我们将研究如何在Ubuntu 18.04上安装Elasticsearch。 Elasticsearch是一个开源的分布式全文本搜索和分析引擎。 它支持RESTful操作(GET,POST请求),并允许您实时存储,搜索和分析大量数据。
步骤1:安装先决条件 (Step 1: Install Prerequisites)
Before installing Elasticsearch, we must first get its dependencies. The major dependency is OpenJDK 8 since this is an open-source Java application.
在安装Elasticsearch之前,我们必须首先获取其依赖项。 主要依赖项是OpenJDK 8,因为这是一个开源Java应用程序。
Let’s first update our system and install required packages so that apt
can download over https.
首先让我们更新系统并安装所需的软件包,以便apt
可以通过https下载。
sudo apt update
sudo apt install apt-transport-https
Now, install OpenJDK 8 (Recommended) using the package manager.
现在,使用包管理器安装OpenJDK 8 (推荐)。
sudo apt install openjdk-8-jdk
Otherwise, if you want to install the most recent version, you can install the latest version of Java.
否则,如果要安装最新版本,则可以