sudo firewall-cmd --reload FirewallD is not running
时间: 2024-04-18 09:21:30 浏览: 298
sudo firewall-cmd --reload是用于重新加载FirewallD防火墙配置的命令。FirewallD是Linux系统上的一个动态防火墙管理工具,它提供了一种简单的方式来配置和管理系统的防火墙规则。
当你运行sudo firewall-cmd --reload命令时,它会重新加载FirewallD的配置文件,并应用新的规则。这对于在修改了防火墙规则后使其生效非常有用。
如果你运行该命令时出现"FirewallD is not running"的错误提示,意味着FirewallD服务当前没有在运行。你可以通过运行sudo 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.
Command 'firewall-cmd' not found, but can be installed with: sudo apt install firewalld
根据提供的引用内容,看起来你正在使用Ubuntu操作系统,而firewall-cmd是CentOS/RHEL操作系统上的防火墙管理工具。因此,你需要安装firewalld来代替firewall-cmd。你可以使用以下命令来安装firewalld:
```
sudo apt install firewalld
```
安装完成后,你可以使用以下命令来添加端口并重新加载防火墙:
```
sudo firewall-cmd --zone=public --add-port=6789/tcp --permanent
sudo firewall-cmd --reload
```
阅读全文