-
获取root权限
su - root 输入密码
-
查看防火墙状态
systemctl status firewalld
-
临时关闭防火墙
systemctl stop firewalld
-
永久关闭防火墙
systemctl disable firewalld
-
打开防火墙
systemctl enable firewalld
本文转自 yuanzhitang 51CTO博客,原文链接:http://blog.51cto.com/yuanzhitang/1844862,如需转载请自行联系原作者