Skip to content

Instantly share code, notes, and snippets.

@loren
Created November 11, 2016 17:56
Show Gist options
  • Save loren/a6dd43909314ed278cb046b34d9e50b8 to your computer and use it in GitHub Desktop.
Save loren/a6dd43909314ed278cb046b34d9e50b8 to your computer and use it in GitHub Desktop.
Make a stock Centos7 install ready to run Elasticsearch 5.0
#!/bin/bash
cat > /etc/sysctl.d/01-elastic.conf << END
vm.max_map_count=262144
END
cat > /etc/security/limits.d/30-elastic.conf << END
centos - nofile 65536
centos soft memlock unlimited
centos hard memlock unlimited
END
echo "Don't forget to reboot!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment