成都网站建设设计

将想法与焦点和您一起共享

如何进行centOS7.x防火墙的关闭

今天就跟大家聊聊有关如何进行centOS 7.x防火墙的关闭,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。

创新互联建站是一家专业提供渭源企业网站建设,专注与成都网站建设、网站设计、H5技术、小程序制作等业务。10年已为渭源众多企业、政府机构等服务。创新互联专业网站建设公司优惠进行中。

    在生产库中一般不用Linux自带的防火墙,因此最好将防火墙关闭,具体如下:

[root@localhost ~]# systemctl stop firewalld.service #关闭防火墙
[root@localhost ~]# systemctl disable firewalld.service #禁止防火墙开机启动
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@localhost ~]# getenforce #查看selinux状态
Enforcing
[root@localhost ~]# setenforce 0 #关闭selinux
[root@localhost ~]# getenforce
Permissive
[root@localhost ~]# vim /etc/selinux/config  #关闭selinux开机启动
SELINUX=disabled

保存退出后即可

注意:若有安装iptables或者ip6tables也需要关闭或者设置通过端口。

此时让网络那边开通权限即可远端登录。

看完上述内容,你们对如何进行centOS 7.x防火墙的关闭有进一步的了解吗?如果还想了解更多知识或者相关内容,请关注创新互联行业资讯频道,感谢大家的支持。


网页名称:如何进行centOS7.x防火墙的关闭
文章位置:http://chengdu.cdxwcx.cn/article/ipispo.html