linux7 selinux closed by a firewall and methods

Firewall (firewalld)
temporarily turn off the firewall
systemctl stop firewalld
permanent firewall boot from close
systemctl disable firewalld
temporarily open the firewall
systemctl start firewalld
firewall boot
systemctl enable firewalld
view firewall state
systemctl status firewalld

SELinux
temporarily turn off SELinux
setenforce 0
temporarily turn SELinux
setenforce 1
View SELinux state
getenforce
boot close SELinux
edit / etc / selinux / config file

Guess you like

Origin www.cnblogs.com/omsql/p/11829648.html