centos7关闭防火墙以及查看防火墙状态

1、关闭firewall:
systemctl stop firewalld.service #停止firewall

systemctl disable firewalld.service #禁止firewall开机启动


firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)

或者

猜你喜欢

转载自www.cnblogs.com/duo-duo/p/10001458.html
今日推荐