要在 CentOS 上停止防火墙服务,您可以使用以下命令:
sudo systemctl stop firewalld
这将停止 firewalld 服务。如果您想禁用防火墙服务,以防止它在系统启动时自动运行,请使用以下命令:
sudo systemctl disable firewalld
如果您想重新启动防火墙服务,可以使用以下命令:
sudo systemctl start firewalld
如果您想重新加载防火墙配置文件,可以使用以下命令:
sudo firewall-cmd --reload
请注意,CentOS 7 及更高版本使用 firewalld 作为默认防火墙。如果您使用的是 CentOS 6 或更早版本,则需要使用 iptables 命令来管理防火墙。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:centos防火墙服务如何停止