1.1.1、 linux防火墙
2015-10-04 08:26
483 查看
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
重启机器即可
查看: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
重启机器即可
相关文章推荐
- linux的简单使用和软件安装
- Linux RPM包安装总结
- CentOS及WLAN驱动的安装
- linux中free命令详解
- wget命令
- Centos更改为163源
- LFS-构建自己的linux
- windows实机 与 Vmware的linux虚机 实现samba等共享目录方案
- [20150513]Linux远程登陆管理以及Vim的学习
- 更改Linux的主机的名称
- Windows Azure Virtual Machine (25) 使用SSH登录Azure Linux虚拟机
- XAMPP 的安装配置(Linux 版)
- linux中文件属性和权限修改命令chgrp|chown|chmod介绍
- Linux对rm的误操作预防
- CentOS 6.7下PXE+Kickstart无人值守安装操作系统
- 配置linux实现路由功能
- Linux内核导出符号宏定义EXPORT_SYMBOL源代码分析
- Linux下crontab命令的使用笔记
- Linux sh、source和.命令执行.sh文件的区别
- 怎样在 CentOS 7.0 上安装和配置 VNC 服务器