Linux‎ > ‎

CentOS 7 - Disable Firewall & SELinux

Disable SELinux:

# vim /etc/selinux/config

將底下config兩行改成:
SELINUX=disabled
#SELINUXTYPE=targeted

# reboot

確認SELINUX狀態:
# sestatus

--------------------------------------------------------------------------
Stop firewall service

# systemctl stop firewalld

Disable firewall

# systemctl disable firewalld
Comments