Error when you start elasticsearch: ./ elasticsearch-env: Line 81: cd: / etc / elasticsearch: insufficient privileges or other rights issues

Error when you start elasticsearch: ./ elasticsearch-env: Line 81: cd: / etc / elasticsearch: enough authority

 

 

 Switch to the root at startup does not work

 

 

This folder is added to the regular user group

cd /etc
sudo chown -R xuelianchen elasticsearch/

Restart, and declare another rights issue of wrong

 

 

 Repeat Add User Group

cd /var/log
sudo chown -R xuelianchen elasticsearch/

 Restart, which was successful

 

 

 PS: probably repeated a dozen times to add user rights to operate, here only posted two are resolved through sudo chown

Guess you like

Origin www.cnblogs.com/cxl-blog/p/12327599.html