CentOS   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了CentOS 6/7关闭防火墙命令大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

CentOS6关闭防火墙: service iptables stop //临时关闭 chkconfig iptables off //禁止开机启动 注: Centos7使用同样命令,会提示 stop iptables.service Failed to stop iptables.service: Unit iptables.service not loaded. CentOS7关闭防火墙

CentOS6关闭防火墙:

service iptables stop //临时关闭
chkconfig iptables off //禁止开机启动

注: Centos7使用同样命令,会提示

stop iptables.service 
Failed to stop iptables.service: Unit iptables.service not loaded.

CentOS7关闭防火墙:

systemctl stop firewalld //临时关闭

systemctl disable firewalld //禁止开机启动

Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.

Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

也可以安装iptables-services,使用下面的命令

yum install -y iptables-services //安装iptables-services
service iptables stop //关闭防火墙
service iptables status //检查防火墙状态

大佬总结

以上是大佬教程为你收集整理的CentOS 6/7关闭防火墙命令全部内容,希望文章能够帮你解决CentOS 6/7关闭防火墙命令所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。