Tag: elasticsearch

  • max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]

    max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]

    错误记录 max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144] max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536] 解决办法 先解决第一条错误 max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144] 原因分析: 操作系统的vm.max_map_count参数设置太小导致的 解决办法: 这里我们可以直接修改docker本身的参数,当然也可以直接修改宿主机本身的配置文件,需要注意的是在docker 容器中执行 sysctl -w vm.max_map_count=655360 会提示错误:…

  • elasticsearch 安全配置 访问限制 iptables限制访问

    启动iptables 将下面一条加到前面 iptables -A INPUT -p tcp –dport 9200 ! -s 127.0.0.1 -j DROP 同时改配置,将如下监听改为需要的监听地址 network.host:127.0.0.1