温馨提示×

centos7怎么禁止防火墙开机自启动

小亿
108
2023-11-03 14:22:07
栏目: 编程语言

要禁止CentOS 7的防火墙开机自启动,你可以按照以下步骤操作:

  1. 打开终端,以root用户身份登录。

  2. 使用以下命令停止并禁用防火墙服务:

systemctl stop firewalld
systemctl disable firewalld
  1. 使用以下命令验证防火墙服务是否已停止:
systemctl status firewalld

如果服务已停止,将显示"Active: inactive (dead)"。

  1. 重新启动系统以使更改生效。

现在,防火墙服务将不再在CentOS 7开机时自动启动。

0