elasticsearch啟動報錯系列

2021-09-12 16:02:50 字數 1042 閱讀 8804

wget

解壓tar -zxvf elasticsearch-6.2.4.tar.gz

在啟動過程 中會遇到這兩個問題

[1]: max file descriptors [4096] 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 [4096] for elasticsearch process is too low, increase to at least [65536]

原因:無法建立本地檔案問題,使用者最大可建立檔案數太小

第二個max number of threads [2048] for user [es] is too low, increase to at least [4096]

原因:無法建立本地執行緒問題,使用者最大可建立執行緒數太小

解決方案:切換到root使用者,進入limits.d目錄下,修改20-nproc.conf 配置檔案。

vi /etc/security/limits.d/20-nproc.conf

找到如下內容:

解決方案:切換到root使用者下,修改配置檔案sysctl.conf

vi /etc/sysctl.conf

新增下面配置:

vm.max_map_count=655360

並執行命令:

sysctl -p

然後重新啟動elasticsearch,即可啟動成功。

ip訪問不了,localhost可以訪問

還有個問題,在啟動的時候伺服器用localhost:9200訪問,用ip訪問不了

修改elasticsearch.yml中network.host,開啟這一行的注釋,就能成功用ip埠訪問伺服器

network.host: 0.0.0.0

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...