Skip to content

Instantly share code, notes, and snippets.

@subchen
Created March 18, 2015 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save subchen/e2d5f9f9e04499a01668 to your computer and use it in GitHub Desktop.
Save subchen/e2d5f9f9e04499a01668 to your computer and use it in GitHub Desktop.
disable selinux & firewall
# disable selinux
echo SELINUX=disabled > /etc/sysconfig/selinux
echo SELINUXTYPE=targeted >> /etc/sysconfig/selinux
setenforce 0
# disable firewall
systemctl disable firewalld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment