Install Elasticsearch 7 on Ubuntu for Magento 2.3
To install Elasticsearch, add the key
1 |
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg |
Install apt-transport-https
1 |
sudo apt-get install apt-transport-https |
Add apt repository
1 |
echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list |
install elasticsearch with apt
1 2 |
apt-get update apt-get install elasticsearch |
Set elasticsearch to start on boot
1 2 |
systemctl daemon-reload systemctl enable elasticsearch |
Elasticsearch can be started and stopped as follows:
1 2 |
systemctl start elasticsearch systemctl stop elasticsearch |
verify elasticsearch is running with
1 |
systemctl status elasticsearch |
or with
1 |
curl localhost:9200 |
if it fails to start, you can debug with
1 |
journalctl --unit elasticsearch |
Offical install instructions at
https://www.elastic.co/guide/en/elasticsearch/reference/8.3/deb.html
See elasticsearch