1 問題:ERROR: bootstrap checks failed
max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]
max number of threads [1024] for user [lishang] likely too low, increase to at least [2048]
vi /etc/security/limits.conf
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
vi /etc/sysctl.conf
vm.max_map_count=655360
保存后執行:
sysctl -p
2 報錯 the default discovery settings are unsuitable for production use
單機啟動 設置單機master修改 elasticsearch.yml
cluster.initial_master_nodes: ["node-1"]
3.開通外網
修改elasticsearch.yml
network.host: 0.0.0.0