Add Elasticsearch Repo CentOS 7
Hello CentOS 7 User! The Tip shows you How to Install Elasticsearch Repository CentOS 7 GNU/Linux Systems.
And the Elasticsearch for CentOS 7 service is a distributed Restful Search and Analytics.
-
Open a Shell Terminal emulator window
(Press “Enter” to Execute Commands)In case first see: Terminal QuickStart Guide.
-
First, Import Elasticsearch GPG Key.
sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
-
Then Add Elasticsearch Repository.
sudo nano /etc/yum.repos.d/elasticsearch.repo
If Got “User is Not in Sudoers file” then see: How to Enable sudo
And Append:[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/nenabled=1/nautorefresh=1 type=rpm-md
Ctrl+x to Save & Exit from nano Editor :)
-
How to Install Elasticsearch on CentOS 7 Systems