[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
简介:
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
# 问题
ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
# 解决
[root@hecs-356640 soft]# vi /etc/sysctl.conf
# 添加这个
vm.max_map_count = 65530
# 刷新
[root@hecs-356640 soft]# sysctl -p
vm.swappiness = 0
net.core.somaxconn = 1024
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_max_syn_backlog = 1024
vm.max_map_count = 65530
# 测试
[root@hecs-356640 soft]# curl http://localhost:9200/
{
"name" : "bYHFSI2",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "fpUxUwJZQHKMeiDycjecLQ",
"version" : {
"number" : "6.8.0",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "65b6179",
"build_date" : "2019-05-15T20:06:13.172855Z",
"build_snapshot" : false,
"lucene_version" : "7.7.0",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}