linux(4)-关闭防火墙命令

关闭服务器上的防火墙:

/etc/init.d/iptables stop 

 PS:如若访问不了,有可能是防火墙开启的原因,则需关闭防火墙

  systemctl status firewalld  查看防火墙状态,如果开启则需关闭
  systemctl stop firewalld    暂时关闭防火墙
  systemctl disable firewalld   永久关闭防火墙

猜你喜欢

转载自www.cnblogs.com/yiyaxuan/p/12450416.html