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

概述

公司服务器是centos 7.0,在服务器上搭建samba使得windows和linux(centos系统)进行通信遇到点小问题。 原因是:centos 7的firewall防火墙没有关闭,导致windows端无法访问到。 CentOS 7.0 关闭防火墙 CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下 1、直接关闭防火墙 systemctl st

公司服务器是centos 7.0,在服务器上搭建samba使得windows和linux(centos系统)进行通信遇到点小问题。
原因是:centos 7的firewall防火墙没有关闭,导致windows端无法访问到。

CentOS 7.0 关闭防火墙

CentOS 7.0认使用的是firewall作为防火墙,使用iptables必须重新设置一下

1、直接关闭防火墙
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动

2、设置 iptables service
systemctl stop iptables.service #停止iptables

3.关闭selinux安全系统
用 root 用户运行下面的命令
vim /etc/sysconfig/selinux
打开 selinux 文件后,@L_944_12@
SELINUX=enforcing 为 SELINUX=disabled

@L_944_12@后,可以使用getenforce获取selinux的状态信息。

大佬总结

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

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

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