CentOS 6.8 启动和关闭防火墙


本文主要介绍启动和关闭系统防火墙的两种方式:

  1. 临时启动 / 关闭
  2. 永久启动 / 关闭

1. 临时启动 / 关闭系统防火墙

1.1 先使用 service iptables status 查看防火墙状态,默认为开启状态;CentOS 6.8 启动和关闭防火墙
1.2 使用 service iptables stop 关闭防火墙;***注意:***这种方式关闭防火墙属于临时关闭,重新启动系统后防火墙默认还是开启状态。CentOS 6.8 启动和关闭防火墙
1.3 如果要开启防火墙可以使用 service iptables startCentOS 6.8 启动和关闭防火墙

2. 永久启动 / 关闭系统防火墙

2.1 要想永久关闭防火墙可以使用 chkconfig iptables off ,该命令可以使以后重启系统后,防火墙处于关闭状态。
CentOS 6.8 启动和关闭防火墙
2.2 对应的开启防火墙可以使用 chkconfig iptables onCentOS 6.8 启动和关闭防火墙

相关文章:

  • 2021-12-01
  • 2022-01-26
  • 2021-08-04
  • 2021-12-11
  • 2021-07-15
  • 2017-12-19
  • 2021-08-06
猜你喜欢
  • 2022-12-23
  • 2022-02-26
  • 2021-08-15
  • 2021-12-25
  • 2022-01-08
  • 2022-01-08
  • 2022-01-14
相关资源
相似解决方案