When elasticsearch starts, how to solve the situation that Permission denied and insufficient permissions occur?

as shown in the figure, the following problems occurred during the installation of es. I set the folders to 777 permissions and gave es user permissions. Why do I still report insufficient permissions during execution? Look up on the Internet, it is all about the establishment of another user, I have built a user, but also given permissions, why is this still the case? Looking for answers.


you need to get the configuration file when you start es. Your configuration file is under / etc/elasticsearch , but your es user does not have this permission. You only have / usr/share/elasticsearch permission.

Menu