#查看防火牆狀態
systemctl status firewalld
#關閉防火牆
systemctl stop firewalld
#禁止開機啟動防火牆
systemctl disable firewalld
#開啟防火牆
systemctl start firewalld
===============================================================================
虛擬機centOS7 關閉防火牆后, 有時還是會出現 能ping通虛擬機ip 但是telnet虛擬機端口不通 解決辦法:disable seLinux
#修改config文件 vi /etc/selinux/config #注釋掉SELINUX=enforcing, 改用disabled #SELINUX=enforcing SELINUX=disabled 保存退出 reboot
