centos 6.5 关闭防火墙
生活随笔
收集整理的这篇文章主要介绍了
centos 6.5 关闭防火墙
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
CentOS 6.5关闭防火墙
[root@localhost ~]#servcie iptables stop --临时关闭防火墙 [root@localhost ~]#chkconfig iptables off --永久关闭防火墙查看防火墙的状态为
service iptables status
(1)永久关闭SELinux(否则samba可能不能访问)
修改配置文件
# vi /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
需要重启机器生效!!
(2)关闭防火墙
开启: chkconfig iptables on
关闭: chkconfig iptables off
转载于:https://www.cnblogs.com/kebibuluan/p/9153726.html
总结
以上是生活随笔为你收集整理的centos 6.5 关闭防火墙的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 时间同步-ntp服务器的搭建(docke
- 下一篇: Spring Boot Security