文章出處
文章列表
mac玩得好好滴,一次性啟動成功,結果在centos上安裝時,遇坑無數,記錄一下:
一、只能localhost訪問的問題
修改 conf\elasticsearch.yml
network.host: 0.0.0.0 http.port: 9200 discovery.zen.ping.unicast.hosts: ["0.0.0.0"]
二、各種啟動 ... too low 的妖娥子
比如:
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
max number of threads [1024] for user [lishang] likely too low, increase to at least [2048]
max number of threads [1024] for user [elasticsearch] is too low, increase to at least [2048]
2.1 修改/etc/security/limits.conf
# /etc/security/limits.conf * soft nofile 65536 * hard nofile 131072 * soft nproc 2048 * hard nproc 4096
2.2 修改 /etc/security/limits.d/90-nproc.conf
* soft nproc 2048 root soft nproc unlimited deploy soft nproc unlimited
2.3 修改/etc/sysctl.conf
追加(如果已存在,則直接修改)
vm.max_map_count=262144
然后執行sysctl -p
三、啟動中的 bootstrap checks failed
仍然修改 conf\elasticsearch.yml
bootstrap.memory_lock: false bootstrap.system_call_filter: false
文章列表
全站熱搜