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

目录
相关文章
|
Linux 网络安全 Docker
Docker报错:Unit firewalld.service could not be found
Docker报错:Unit firewalld.service could not be found
547 0
|
5月前
|
Ubuntu Linux Shell
9-11|Unit cron.service could not be found.
9-11|Unit cron.service could not be found.
|
网络安全
Linux_异常_03_Failed to restart iptables.service: Unit not found.
启动防火墙时出现: Failed to restart iptables.service: Unit not found.     解决方案: 1.https://stackoverflow.
8456 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。
2786 0
|
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...
209 0
|
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
24737 0
|
网络协议 Linux 网络安全
【Linux环境】centos7 Failed to start iptables.service: Unit not found 防火墙
【Linux环境】centos7 Failed to start iptables.service: Unit not found 防火墙
538 0
OpenstackHigh-level-service
1,yum -y install openstack-cinder;   /usr/lib64/python2.6/site-packages/Crypto/Util/number.
718 0

热门文章

最新文章