ITPub博客

首页 > Linux操作系统 > Linux操作系统 > centos7关闭防火墙

centos7关闭防火墙

原创 Linux操作系统 作者:hunterjoy 时间:2015-05-28 06:22:51 0 删除 编辑

转载自:http://www.centoscn.com/CentOS/2015/0313/4877.html

直接命令:service firewalld stop

 

1. Disable Firewalld Service.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl mask firewalld

2. Stop Firewalld Service.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl stop firewalld

3. Install iptables service related packages.

[root@rhel-centos7-tejas-barot-linux ~]# yum -y install iptables-services

4. Make sure service starts at boot:

[root@rhel-centos7-tejas-barot-linux ~]# systemctl enable iptables

# If you do not want ip6tables, You can skip following command.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl enable ip6tables

5. Now, Finally Let’s start the iptables services.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl start iptables

# If you do not want ip6tables, You can skip following command.

[root@rhel-centos7-tejas-barot-linux ~]# systemctl start ip6tables

Firewalld Service is now disabled and stop, You can use iptables.


关闭  selinux

vi/etc/selinux/config

#SELINUX=enforcing
SELINUX=disabled

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/543979/viewspace-1674612/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2007-12-31

  • 博文量
    168
  • 访问量
    389689