Created
November 11, 2016 17:56
-
-
Save loren/a6dd43909314ed278cb046b34d9e50b8 to your computer and use it in GitHub Desktop.
Make a stock Centos7 install ready to run Elasticsearch 5.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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