centos7 防火墙开放svn通过 author jiangxin 2019-06-13

介绍防火墙状态查看修改

一、输入命令cat /etc/redhat-release查看系统版本。
二、关闭防火墙。
输入systemctl status firewalld命令查看当前防火墙的状态。
centos7 防火墙开放svn通过
如果防火墙的状态参数是active,则防火墙为开启状态。如果防火墙的状态参数是inactive,则防火墙为关闭状态。如上图所示,此处防火墙为开启状态,需要运行如下命令关闭防火墙:
如果您想临时关闭防火墙,输入命令systemctl stop firewalld。
说明 这只是暂时关闭防火墙,下次重启Linux后,防火墙还会开启。
如果您想永久关闭防火墙,输入命令systemctl disable firewalld。

下面进入正题

一、例如添加3306端口
firewall-cmd --permanent --add-port=3690/tcp
二、登录服务其配置安全组规则
centos7 防火墙开放svn通过
三、重新启动服务
systemctl restart firewalld

相关文章:

  • 2021-11-18
  • 2021-12-24
  • 2021-11-11
  • 2022-12-23
  • 2021-12-25
  • 2021-09-06
  • 2021-11-08
猜你喜欢
  • 2022-02-09
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案