首先使用以下命令查看当前防火墙状态:
systemctl status firewalld
如果防火墙正在运行,可以使用以下命令停止并禁用防火墙:
systemctl stop firewalld
systemctl disable firewalld
如果你正在使用IPtables作为防火墙,可以使用以下命令停止并禁用IPtables:
systemctl stop iptables
systemctl disable iptables
最后,重启操作系统以应用更改:
reboot
注意:在关闭防火墙后,系统的安全性将会受到影响,请确保只在安全的网络环境下执行此操作。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:centos防火墙怎么关闭