'Could not validate a connection to Elasticsearch. No alive nodes found in your cluster
Platform: Magento 2 (V2.4.0) | Server: Linux Centos
When I run the command below,
COMPOSER_MEMORY_LIMIT=-1 php bin/magento setup:static-content:deploy -f
I get the error,
Could not validate a connection to Elasticsearch. No alive nodes found in your cluster
When I run,
systemctl restart elasticsearch.service
I get the error,
Failed to restart elasticsearch.service: Unit not found.
And when I run the command,
systemctl status elasticsearch
I get the error,
Unit elasticsearch.service could not be found
However, I can see Elasticsearch folder and files in the following path:
vendor/elasticsearch/elasticsearch
Any suggestions?
Thank you!
Solution 1:[1]
Hi try using these commands, i use them on my ubuntu instance
sudo -i service elasticsearch start
service elasticsearch restart
sudo -i service elasticsearch stop
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | tp45 |
