我的防火墙目前无效.
systemctl status firewalld firewalld.service Loaded: masked (/dev/null) Active: inactive (dead)
我使用以下命令启用防火墙
# systemctl unmask firewalld
但是我收到了这个错误:
# systemctl unmask firewalld Failed to issue method call: Access denied # sudo systemctl restart firewalld Failed to issue method call: Unit firewalld.service Failed to load: No such file or directory. # sudo systemctl enable firewalld Failed to issue method call: Access denied
强烈建议您使用防火墙保护服务器:
当您尝试启动或启用未在Linux系统上安装或键入错误服务名称的服务时,会出现此错误.输入以下内容查看服务列表:
systemctl list-units --type=service
安装(如果不可用):
yum install firewalld
您可以输入以下命令启用firewalld:
systemctl enable firewalld sudo systemctl enable firewalld
您可以输入以下命令启动firewalld:
systemctl start firewalld sudo systemctl start firewalld
通过键入以下内容来查看其状态:
systemctl status firewalld