SavefileArchive
USD/IDR ...
|
BTC ...
|
ETH ...
|
GOLD/gram ...
Terbaru
SavefileArchive — Tutorial coding, tips programming, dan dunia musik untuk developer & pecinta musik Indonesia
install elastic search Centos 7

install elastic search Centos 7

 


install Elasticsearch on CentOS 7, you can follow these steps:

  1. First, open a terminal window and make sure that you are logged in as a user with sudo privileges.

  2. Update the package manager index by running the following command:

sudo yum update
  1. Install the Java Development Kit (JDK) by running the following command:
sudo yum install java-1.8.0-openjdk-devel
  1. Install Elasticsearch by adding the Elasticsearch repository to your system using the following command:
sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
  1. Create a new file called elasticsearch.repo in the /etc/yum.repos.d/ directory by running the following command:
sudo vi /etc/yum.repos.d/elasticsearch.repo
  1. Add the following lines to the elasticsearch.repo file to configure the Elasticsearch repository:
[elasticsearch-6.x] name=Elasticsearch repository for 6.x packages baseurl=https://artifacts.elastic.co/packages/6.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md
  1. Save the elasticsearch.repo file and exit the editor.

  2. Install Elasticsearch by running the following command:

sudo yum install elasticsearch
  1. Once the installation is complete, start the Elasticsearch service by running the following command:
sudo systemctl start elasticsearch
  1. To make Elasticsearch start automatically whenever the system boots, run the following command:
sudo systemctl enable elasticsearch

After completing these steps, Elasticsearch should be installed and running on your CentOS 7 system. You can verify this by running the following command, which will display the Elasticsearch version number:

curl -X GET "localhost:9200"

This command should return a JSON object containing information about the Elasticsearch server, including the version number. If you see this information, then Elasticsearch has been installed successfully on your system.