문제

I have successfully cloned & installed a Magento cloud environment Magento 2.4.2 in my local instance.

And also installed elastic search and tested it via the command line and it's working fine.

Note: I have followed his link to install and configure elastic search https://www.emizentech.com/blog/magento-2-4-with-elasticsearch-complete-guide.html

Output from the command line: enter image description here

But while running upgrade command throws following error.

enter image description here

Elastic search configuration file

/etc/elasticsearch/elasticsearch.yml

enter image description here

Can anyone please help me to sort out this?

도움이 되었습니까?

해결책

Just restart the service :)

sudo systemctl stop elasticsearch
sudo systemctl start elasticsearch

You may also need to execute:

sudo systemctl enable elasticsearch
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top