Unit firewalld.service could not be found.

本文涉及的产品
云防火墙,500元 1000GB
简介: Unit firewalld.service could not be found.

Unit firewalld.service could not be found.

1、问题描述

当我们使用如下指令查看当前Ubuntu防火墙状态时:

systemctl status firewalld

会报一个这样的错误:

说明防火墙没有安装,需要安装!

2、安装防火墙

yum install firewalld firewall-config

注意: 使用yum安装可能报错(未安装yum),可参考Ubuntu 安装使用yum好像不需要yum

直接使用apt-get安装,不过要改代码:

sudo apt-get install firewalld firewall-config

3、防火墙状态

查看防火墙状态:

systemctl status firewalld

关闭防火墙(暂时),系统重新启动后,防火墙将重新打开:

systemctl stop firewalld

关闭防火墙(永久),系统重新启动后,防火墙将依然关闭:

systemctl disable firewalld

重启防火墙:

systemctl restart firewalld

目录
相关文章
|
2月前
Could not connect to ‘x.x.x.x ‘(port 22): Connection failed.Failed to start sshd.service:
Could not connect to ‘x.x.x.x ‘(port 22): Connection failed.Failed to start sshd.service:
22 0
|
9月前
|
Java
解决:Config service failed to start in 120 seconds! Please check ./service/apollo-service.log...
解决:Config service failed to start in 120 seconds! Please check ./service/apollo-service.log...
120 0
|
10月前
|
网络协议 Linux 网络安全
【Linux环境】centos7 Failed to start iptables.service: Unit not found 防火墙
【Linux环境】centos7 Failed to start iptables.service: Unit not found 防火墙
358 0
|
Linux 网络安全 Docker
Docker报错:Unit firewalld.service could not be found
Docker报错:Unit firewalld.service could not be found
315 0
‘Client‘ is not allowed to run in parallel.Would you like to stop the running one?
‘Client‘ is not allowed to run in parallel.Would you like to stop the running one?
510 0
‘Client‘ is not allowed to run in parallel.Would you like to stop the running one?
Run service in specified proxyPort via jettyrun
Run service in specified proxyPort via jettyrun
Run service in specified proxyPort via jettyrun
|
Linux 虚拟化
安装centos7 报错[FAILED] Failed to start Switch Root. see 'systemctl status initrd-switch-root.service' for details
安装centos7 报错[FAILED] Failed to start Switch Root. see 'systemctl status initrd-switch-root.service' for details
24400 0
|
Dubbo 应用服务中间件 容器
关于Failed to check the status of the service com.taotao.service.ItemService. No provider available fo
原文:http://www.bubuko.com/infodetail-2250226.html 项目中用dubbo发生:     Failed to check the status of the service com.taotao.service.ItemService. No provider available for the service 原因: Dubbo缺省会在启动时检查依赖的服务是否可用,不可用时会抛出异常,阻止Spring初始化完成,以便上线时,能及早发现问题,默认check=true。
2733 0
|
网络安全
Linux_异常_03_Failed to restart iptables.service: Unit not found.
启动防火墙时出现: Failed to restart iptables.service: Unit not found.     解决方案: 1.https://stackoverflow.
7961 0