Magento 2.4.2 Elastic search - Service failed or Denied
Hi, I am a new member of the Magento community. I am trying to install Elastic search in my Hostgator VPS server with the below commands.
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
Create an elasticsearch.repo file in /etc/yum.repos.d/ using Nano, VIM, or Emacs:
Add the following to the file:
[elasticsearch]name=Elasticsearch repository for 7.x packages
Now install Elasticsearch:
sudo yum install --enablerepo=elasticsearch elasticsearch
Open port 9200 in your firewall: Firewalld, UFW, CSF, etc. Or if you need to use another port, edit the Elasticsearch YAML file.
Check that Elasticsearch is running on an open port:
curl –X GET localhost:9200
Installing works fine I think. When I try to run "service elasticsearch start", getting below error.
Starting elasticsearch (via systemctl): Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
Tried as many different solutions on the internet. Nothing works. Hostgator admin saying it's elastic search-related issue. Not sure how to solve this issue. Mine is running "Ubuntu" server.