7.2. 安装 firewalld 服务
如果您使用 RHEL for Edge,则应该安装 firewalld。要使用该服务,您可以简单地进行配置。如果您没有 firewalld,但希望使用它,则可以使用以下步骤。
使用以下步骤为 MicroShift 安装并运行 firewalld
服务。
流程
可选:运行以下命令来检查系统中的 firewalld :
rpm -q firewalld
$ rpm -q firewalld
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 如果没有安装
firewalld
服务,请运行以下命令:sudo dnf install -y firewalld
$ sudo dnf install -y firewalld
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 要启动防火墙,请运行以下命令:
sudo systemctl enable firewalld --now
$ sudo systemctl enable firewalld --now
Copy to Clipboard Copied! Toggle word wrap Toggle overflow