美文网首页
CentOS7 关闭防火墙

CentOS7 关闭防火墙

作者: 勤劳的小仓鼠 | 来源:发表于2019-05-09 10:31 被阅读0次

CentOS6关闭防火墙使用以下命令,

CentOS7中若使用同样的命令会报错,

    stopiptables.service

    Failedtostopiptables.service: Unit iptables.servicenotloaded.

这是因为CentOS7版本后防火墙默认使用firewalld,因此在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-service,也可以使用下面的命令,

    yum install -y iptables-services

    //关闭防火墙

    service iptables stop

    Redirectingto/bin/systemctlstopiptables.service

    //检查防火墙状态

    service iptables status 

相关文章

  • linux命令

    centos7启动防火墙 centos7停止防火墙/关闭防火墙 centos7重启防火墙 注意:新增/删除操作需要...

  • Linux使用-FAQ

    CentOS7 关闭防火墙 参考:CentOS7 关闭防火墙 在我的虚拟机下启动服务 进程管理 文件管理 查看日志...

  • ELK快速搭建教程

    一、 Elasticsearch安装 环境准备系统: Centos7防火墙: 关闭Sellinux: 关闭JDK ...

  • linux常用操作命令

    centos7一下的系统防火墙设置: 关闭命令:service iptables stop 永久关闭防火墙:chk...

  • Linux常用操作

    centos7关闭防火墙: systemctl stop firewalld.service systemctl ...

  • CentOS开启MySQL远程客户端访问,解决10038报错

    1、关闭Linux防火墙、SELinux 防火墙配置参照:CentOS7 修改防火墙配置SELinux配置参照:C...

  • Centos7防火墙

    Centos7 firewall 命令: 查看已经开放的端口 开启端口 重启防火墙 关闭防火墙 iptables ...

  • CentOS7 防火墙配置

    CentOS7防火墙配置 查看防火墙的服务状态 查看防火墙的状态 开启、重启、关闭、firewalld.servi...

  • HADOOP从入门到入坟

    centos6关闭防火墙 centos7关闭防火墙 配置主机映射,改变各从节点主机名 配置slaves :/had...

  • Linux关闭防火墙命令

    问题:老是关闭防火墙太麻烦,所以选择彻底关闭防火墙,发现每次都记不住命令! 下面是red hat/CentOs7关...

网友评论

      本文标题:CentOS7 关闭防火墙

      本文链接:https://www.haomeiwen.com/subject/upqkiqtx.html