记一次docker-compose启动elk的问题
直接贴错
ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
bootstrap check failure [1] of [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
ERROR: Elasticsearch did not exit normally - check the logs at /usr/share/elasticsearch/logs/es-cluster.log
错误描述是本地虚拟内存太少了,需要增加到262144
所以:
vim /etc/sysctl.conf
写入
vm.max_map_count=655360
保存退出
加载一下:
sysctl -p
重启一下:
docker-compose -f docker-elk.yml up -d