如何增加vm.max_map_count? [英] How to increase vm.max_map_count?

查看:77
本文介绍了如何增加vm.max_map_count?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Ubuntu EC2计算机(t2.medium)中运行Elastic搜索.

I'm trying to run Elastic search in an Ubuntu EC2 machine (t2.medium).

但是我收到消息:

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

如何增加vm.max_map_count?

How can I increase the vm.max_map_count?

推荐答案

要使其持久,可以添加以下行:

To make it persistent, you can add this line:

vm.max_map_count=262144

在您的/etc/sysctl.conf 中并运行

$ sudo sysctl -p

使用新值重新加载配置

这篇关于如何增加vm.max_map_count?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆