linux防火墙放行端口 FirewallD is not running
时间: 2023-10-27 18:34:32 浏览: 157
如果你想在Linux上放行某个端口,可以使用FirewallD来管理防火墙规则。如果你发现FirewallD没有运行,你可以按照以下步骤启动它:
1. 检查FirewallD是否已经安装,如果没有安装,你需要先安装它。
2. 启动FirewallD服务:`sudo systemctl start firewalld`
3. 确认FirewallD已经启动:`sudo systemctl status firewalld`
4. 如果FirewallD已经启动,你可以放行某个端口,例如放行80端口:`sudo firewall-cmd --add-port=80/tcp --permanent`
5. 重新加载防火墙规则:`sudo firewall-cmd --reload`
现在,端口80已经被放行了,并且将在重启后保持。如果你想放行其他端口,请使用相应的端口号来替换80。
相关问题
linux FirewallD is not running
当出现"FirewallD is not running"的提示时,说明防火墙未开启。防火墙是一种网络安全系统,用于监控和控制网络流量,以保护计算机免受未经授权的访问。在Linux系统中,防火墙通常使用FirewallD来管理。如果FirewallD未运行,则需要先启动防火墙,可以使用命令"systemctl start firewalld"来启动防火墙。启动后,可以使用命令"systemctl status firewalld"来检查防火墙的状态。如果防火墙已经启动,但仍然出现"FirewallD is not running"的提示,则可能需要检查防火墙的配置是否正确,或者是否存在其他问题导致防火墙无法正常工作。
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.
阅读全文