防火墙类似于商场中的防火门,用于隔离一些意外的危险,因为接下来的实验不需要用到防火墙,因此需要关闭防火墙,如果开启防火墙,在实验过程中可能会出现各种报错,执行防火墙相关命令即可关闭防火墙。
systemctl status firewalld #查看防火墙状态 systemctl start firewalld #开启防火墙 systemctl stop firewalld #关闭防火墙 systemctl enable firewalld #开机自动开启防火墙 systemctl disable firewalld #开机自动关闭防火墙 systemctl list-unit-files | grep firewalld #查看防火墙是否自动开启
最后更新于3年前
这有帮助吗?