1

I want to install Elastic Search on Magento 2.2.X Community Edition. Can anyone help me on this?

2

Please follow below steps to install elastic search

1) Trust the Elastic signing key:

sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

2) Create a yum repository configuration to use the Elastic yum repository:

[elasticsearch-6.x] name=Elastic 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

3) Install the official Elastic APT package signing key:

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -    

4) Install the elasticsearch package:

sudo yum install -y elasticsearch

5) Enable and start the elasticsearch service:

sudo systemctl enable elasticsearch
sudo systemctl start elasticsearch

6) To determine whether or not the service has started successfully, view the most recent logs:

 systemctl status elasticsearch

Example Of 2nd Step

Create a file with a .repo extension (for example, elastic.repo) in your /etc/yum.repos.d/ directory and add the following lines:

[elastic-6.x]
name=Elastic 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

Not the answer you're looking for? Browse other questions tagged or ask your own question.