CentOS7使用firewalld打開(kāi)關(guān)閉防火墻與端口
啟動(dòng): systemctl start firewalld
關(guān)閉: systemctl stop firewalld
查看狀態(tài): systemctl status firewalld
開(kāi)機(jī)禁用? : systemctl disable firewalld
開(kāi)機(jī)啟用? : systemctl enable firewalld
CentOS6關(guān)閉防火墻與端口
立即關(guān)閉,并非永久關(guān)閉:service iptables stop
永久關(guān)閉:iptables -F? #關(guān)閉防火墻功能
chkconfig iptables off #禁止防火墻啟動(dòng)