关闭CentOS——Linux防火墙自启

112 阅读1分钟

在Linux中关闭防火墙自启动的步骤因使用的发行版不同而有所差异。以下是针对常见Linux发行版的操作方法:

1. CentOS / RHEL

CentOS和RHEL通常使用firewalld作为默认防火墙。

  1. 检查状态以确认防火墙状态:
sudo systemctl status firewalld

image.png 2. 停止firewalld服务:

sudo systemctl stop firewalld
  1. 禁用firewalld开机自启动:
sudo systemctl disable firewalld

image.png

  1. 检查状态以确认防火墙已禁用:
sudo systemctl status firewalld

image.png