Skip to content

Instantly share code, notes, and snippets.

@vittee
Created January 15, 2018 15:54
Show Gist options
  • Save vittee/3d1d4f1e1e987cdf3c0e1e951f23d557 to your computer and use it in GitHub Desktop.
Save vittee/3d1d4f1e1e987cdf3c0e1e951f23d557 to your computer and use it in GitHub Desktop.
CentOS7 Disable SELinux + Increase Max File
setenforce 0
sed -i -E s/SELINUX=.+/SELINUX=disabled/g /etc/sysconfig/selinux
sysctl -w fs.file-max=500000
echo fs.file-max=500000 >> /etc/sysctl.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment