elasticsearch/config/elasticsearch.yml
时间: 2023-08-14 09:03:11 浏览: 124
elasticsearch.yml 配置文件
5星 · 资源好评率100%
根据引用和引用,问题是关于elasticsearch的配置文件elasticsearch.yml的。引用中的命令是用于启动elasticsearch容器的,其中包含了挂载配置文件的路径。而引用指出在启动elasticsearch容器时遇到了问题,报错信息是"Failed to load settings from /usr/share/elasticsearch/config/elasticsearch.yml",并且原因是没有访问权限。解决方案是给相应的目录加上权限。具体的操作是使用命令"chmod -R 777 /mydata/elasticsearch/"来给挂载路径添加可执行、可读写的权限,并在启动脚本命令中添加"--privileged=true"参数重新执行启动命令。
综上所述,如果你遇到elasticsearch配置文件elasticsearch.yml的问题,可能是因为没有访问权限。你可以使用命令"chmod -R 777 /mydata/elasticsearch/"来给挂载的目录添加权限,并在启动脚本命令中添加"--privileged=true"参数重新执行启动命令。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [AccessDeniedException[/usr/share/elasticsearch/config/elasticsearch.yml](https://blog.csdn.net/miachen520/article/details/121572091)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Docker启动elasticsearch退出并报错AccessDeniedException/usr/share/elasticsearch/config/elasticsearch....](https://blog.csdn.net/cucgyfjklx/article/details/125714722)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文