1.1.1、 linux防火墙
来源:互联网 发布:yahoo input mac 编辑:程序博客网 时间:2024/06/07 05:57
1、关闭iptables防火墙:
查看:chkconfig --list iptables
(1) 重启后永久性生效: 开启:chkconfig iptables on 关闭:chkconfig iptables off
(2) 即时生效,重启后失效: 开启:service iptables start 关闭:service iptables stop
2、查看SELinux状态:
1)/usr/sbin/sestatus -v ##如果SELinux status参数为enabled即为开启状态
SELinux status: enabled
2)getenforce ##也可以用这个命令检查
3、关闭SELinux:
1、临时关闭(不用重启机器):
setenforce 0 ##设置SELinux 成为permissive模式
##setenforce 1 设置SELinux 成为enforcing模式
2、修改配置文件需要重启机器:
修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled
重启机器即可
0 0
- 1.1.1、 linux防火墙
- Linux(1) 配置防火墙
- Linux防火墙-单机防火墙
- Linux 防火墙
- Linux防火墙
- Linux 防火墙
- linux防火墙
- linux防火墙
- linux 防火墙
- linux 防火墙
- Linux防火墙
- Linux 防火墙
- Linux防火墙
- linux 防火墙
- Linux防火墙
- Linux防火墙
- Linux防火墙
- linux防火墙
- redis之如何配置jedisPool参数
- redis主从切换的集群管理
- 一致性哈希算法与Java实现
- 0.1、/etc/profile
- 1.0 、启动命令
- 1.1.1、 linux防火墙
- Activity调用Service的方法
- MySQL主从安装文档
- 1.3、centos配置静态ip(ok)
- 1.4、hadoop安装文档(ok)
- zookeeper安装
- hbase安装文档
- mahout安装
- hive安装文档