🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[https://www.cnblogs.com/fanwenyan/p/15506660.html](https://www.cnblogs.com/fanwenyan/p/15506660.html) [https://www.it610.com/article/1523089633179664384.htm](https://www.it610.com/article/1523089633179664384.htm) 按照第一种装的 启动 es 报错 AccessDeniedException 2022-06-02T05:34:20.071145674Z uncaught exception in thread \[main\] 2022-06-02T05:34:20.071646169Z ElasticsearchException\[failed to bind service\]; nested: AccessDeniedException\[/usr/share/elasticsearch/data/nodes\]; 2022-06-02T05:34:20.071659370Z Likely root cause: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes 是因为 /mydata/elasticsearch 这个文件夹中的data 和 plugins 没设置成 777 chmod -R 777 /mydata/elasticsearch/data chmod -R 777 /mydata/elasticsearch/plugins 我本身是用 xftp 设置的 /mydata/elasticsearch 及子目录是777, 但是子目录里的 data 和 plugins 没生效, 我又单独设置的这俩. kibana 连接 es 能用内网ip, 就用内网 # elasticsearch增加账号密码 https://blog.51cto.com/lxw1844912514/4375302 elasticsearch.yml 增加 ``` xpack.security.enabled: true xpack.license.self_generated.type: basic xpack.security.transport.ssl.enabled: true ``` 进入 docker elasticsearch 容器 执行 ``` bin/elasticsearch-setup-passwords interactive ``` 会提示 Please confirm that you would like to continue [y/N]y 输入y 之后要给各个账号设置对应的密码