CentOS-7
1.首先切换到 root:su -root
2.进入 /bin 目录:cd /bin
3.执行命令:systemctl stop firewalld.service(关闭防火墙)
systemctl disable firewalld.service(关闭防火墙自动启动)
4.查看防火墙状态:systemctl status firewalld.service(查看防火墙服务状态)
CentOS-7
1.首先切换到 root:su -root
2.进入 /bin 目录:cd /bin
3.执行命令:systemctl stop firewalld.service(关闭防火墙)
systemctl disable firewalld.service(关闭防火墙自动启动)
4.查看防火墙状态:systemctl status firewalld.service(查看防火墙服务状态)