failed to obtain node locks, tried [[/var/lib/elasticsearch]] with lock id [0];
錯誤信息:
failed to obtain node locks, tried [[/var/lib/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes]
Elasticsearch version 6.8.2
解決方法一:
查找ES進程號,殺掉進程然后重啟。
ps -ef | grep elastic kill -9 進程號
解決方法二:
給予操作ES的管理員權限,chown -R 用戶名:組名 文件目錄
解決方法三:
可能是因為安裝了ES的插件,修改了配置文件 elasticsearch.yml
將這些注釋或刪除掉后重啟
