查看該文件夾配置
grep vm.max_map_count /etc/sysctl.conf
添加配置
[root@Test elasticsearch]# echo 'vm.max_map_count=262144' >> /etc/sysctl.conf
[root@Test elasticsearch]# grep vm.max_map_count /etc/sysctl.conf
vm.max_map_count=262144
立即生效
sysctl -w vm.max_map_count=262144