FirewallD is not running [root@VM-16-9-centos mydata]# firewall-cmd --reload FirewallD is not running是
时间: 2024-03-10 18:42:30 浏览: 114
FirewallD is not running是指FirewallD防火墙服务未在运行。当执行命令"firewall-cmd --reload"时,系统检测到FirewallD服务未启动,因此提示该错误信息。
FirewallD是Linux系统中的一种动态防火墙管理工具,用于管理网络连接和防火墙规则。它提供了一种简单的方式来配置和管理防火墙,可以通过命令行或图形界面进行操作。
如果遇到FirewallD is not running的错误,可能有以下几种原因:
1. FirewallD服务未安装:请确保已正确安装FirewallD服务。
2. FirewallD服务未启动:可以使用命令"systemctl start firewalld"来启动FirewallD服务。
3. 防火墙被禁用:可能是由于系统设置或其他原因导致防火墙被禁用。可以使用命令"systemctl enable firewalld"来启用防火墙,并使用命令"systemctl start firewalld"来启动FirewallD服务。
相关问题
FirewallD is not running [root@VM-16-9-centos mydata]# firewall-cmd --reload FirewallD is not running
FirewallD is a firewall management tool used in CentOS and other Linux distributions. The error message "FirewallD is not running" indicates that the FirewallD service is not currently active or running on your system.
To resolve this issue, you can try starting the FirewallD service using the following command:
```
sudo systemctl start firewalld
```
If the service starts successfully, you should see a message indicating that the FirewallD service has started. You can then try running the `firewall-cmd --reload` command again to reload the firewall rules.
If the issue persists, you may need to check if the FirewallD service is enabled to start at boot. You can do this by running the following command:
```
sudo systemctl enable firewalld
```
This will ensure that the FirewallD service starts automatically when you boot your system.
Tomcat started. [root@linux bin]# netstat -tunlp | grep 8080 [root@linux bin]# firewall-cmd --zone=public --permanent --add-port=8080/tcp FirewallD is not running [root@linux bin]# firewall-cmd --reload FirewallD is not running [root@linux bin]#
这段命令输出显示 Tomcat 已经启动,但是防火墙并没有开放 8080 端口。由于提示 `FirewallD is not running`,说明防火墙服务并没有运行。如果您需要开启防火墙并开放 8080 端口,可以先尝试启动防火墙服务,然后再执行开放端口的命令。可以使用以下命令启动防火墙服务:
```
systemctl start firewalld
```
启动完成后再执行以下命令开放 8080 端口:
```
firewall-cmd --zone=public --permanent --add-port=8080/tcp
```
最后再执行以下命令重新加载防火墙规则:
```
firewall-cmd --reload
```
这样就可以开启防火墙并开放 8080 端口了。
阅读全文