Permission Denied in Starting Elasticsearch

I have tried to start Elasticsearch and got this error , can anyone help me?`

  systemd-entrypoint[57336]: /usr/share/elasticsearch/bin/elasticsearch-env: line 81: 
  /etc/sysconfig/elasticsearch: Permission denied
  systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
  systemd[1]: Failed to start Elasticsearch.` 

This is the line 81 in /usr/share/elasticsearch/bin/elasticsearch-env ==>

Line 79 : export HOSTNAME=$HOSTNAME**
Line 80 :
Line 81 :surce /etc/sysconfig/elasticsearch

User =root
Server onfiguration :
VERSION="7.9 (Boris Yegorov)"
ID_LIKE="rhel fedora centos"

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.