centos 7 关闭防火墙
来源:互联网 发布:昆明编程招聘 编辑:程序博客网 时间:2024/05/19 20:40
公司服务器是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 文件后,修改
SELINUX=enforcing 为 SELINUX=disabled
修改后,可以使用getenforce获取selinux的状态信息。
阅读全文
0 0
- CentOS 7 关闭防火墙
- centos 7关闭防火墙
- centos 7关闭防火墙
- centos 7 关闭防火墙
- CentOS 7 关闭防火墙
- centos 7关闭防火墙
- CentOS 7 关闭防火墙
- 【Linux】centOS 7 关闭防火墙
- 【配置】CentOS 7 关闭防火墙
- CentOS 7 关闭防火墙 SELinux , FireWalld
- centos 7 中防火墙的关闭问题
- centos 7 中防火墙的关闭问题
- centos 7 中防火墙的关闭问题
- centos 7 中防火墙的关闭问题
- CentOS 7 下关闭和开启防火墙
- CentOS Linux关闭防火墙
- CentOS Linux关闭防火墙
- centos 防火墙关闭
- 如何删除开发用户的开发Key
- 小程序更新背后的阴谋论
- 清除缓存
- 在HTML中显示中文名的图片
- Mat与IplImage*之间的转换
- centos 7 关闭防火墙
- 593. Valid Square
- 四川省赛 --- H 题 (缩点)
- 我的个人网站备案后的惨痛经历 学会赚而不是省
- SAP SD (Sales & Distribution) Training Tutorial
- Python 字符串操作(string替换、删除、截取、复制、连接、比较、查找、包含、大小写转换、分割等)
- Qt遍历目录的所有文件,并过滤后缀名
- Ant打可执行jar包指南
- SAP MM (Material Management) Training Tutorial