ElasticSearch啟動報錯,常規解決方法

2021-08-04 14:31:14 字數 985 閱讀 6559

啟動檢查沒有通過

[2017-07-30t13:54:23,964][info ][o.e.b.bootstrapchecks    ] [z3ag6hq] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks

error: [2] bootstrap checks failed

[1]: max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]

[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

解決:[1]: max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]

編輯 /etc/security/limits.conf

在檔案最後新增

* soft nofile 65536

* hard nofile 65536

儲存此檔案修改後需要重新登入使用者,才會生效

[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

1、切換到root使用者修改配置sysctl.conf

vi /etc/sysctl.conf
2、新增下面配置:

vm.max_map_count=655360
3、並執行命令:

sysctl -p

ElasticSearch 安裝啟動

2 解壓到當前目錄 tar zxvf elasticsearch 7.1.1.tar.gz3 es配置檔案,幾乎不用什麼更改,大部分都是預設就可以。配置檔案裡有 集群配置 節點配置 路徑配置 記憶體配置 網路配置 集群節點發現引數 等配置資訊。進入 elasticsearch config目錄,使用...

elasticsearch安裝啟動

因為elasticsearch不能用root啟動,否則啟動會報錯 1.建立乙個使用者 useradd elasticsearch 2.對解壓下面的檔案都賦予許可權 chown r elasticsearch elasticsearch home elasticsearch 7.3.2 ip訪問 增加...

啟動elasticsearch報錯

報錯資訊如下 2020 06 21t17 19 49,618 info o.e.n.node xkxjzr3 starting 2020 06 21t17 19 49,948 info o.e.t.transportservice xkxjzr3 publish address bound addr...