CentOS7 默认使用firewalld防火墙
1、关闭firewall:
- 停止firewall
systemctl stop firewalld.service
- 禁止firewall开机启动
systemctl disable firewalld.service
- 查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
firewall-cmd --state
CentOS7 默认使用firewalld防火墙
1、关闭firewall:
systemctl stop firewalld.service
systemctl disable firewalld.service
firewall-cmd --state