`
jsntghf
  • 浏览: 2473362 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

Redhat关闭SELinux和防火墙

阅读更多

系统环境:Red Hat Enterprise Linux Server release 6.2 (Santiago)

 

一、关闭SELinux

1、修改/etc/selinux/config文件中的SELINUX的值为disabled

2、重启系统

 

二、关闭防火墙

1、永久性生效

开启:chkconfig iptables on 

关闭:chkconfig iptables off

 

2、即时生效,重启后失效

开启:service iptables start

关闭:service iptables stop

 

3、关闭ipv6防火墙

开启:chkconfig ip6tables on

关闭:chkconfig ip6tables off

 

三、查看状态

1、防火墙状态

$ chkconfig --list iptables

 

2、SELinux状态

$ sestatus

 

分享到:
评论

相关推荐

    Redhat关闭SELinux和防火墙的办法.docx

    Redhat关闭SELinux和防火墙的办法.docx

    Redhat关闭SELinux和防火墙[0分]

    Redhat关闭SELinux和防火墙[0分]

    Linux环境安装oracle 11g数据库

    1. 关闭SELinux、防火墙 (后续要打开防火墙就得开放1521端口以及允许ip通过) service iptables stop chkconfig iptables off sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config 或者编辑 vi /etc/...

    linux常用命令和关闭防火墙开启防火墙 自己总结全

    关闭防火墙和selinux Redhat使用了SELinux来增强安全,关闭的办法为: 永久有效 修改 /etc/selinux/config 文件中的 SELINUX=”” 为 disabled ,然后重启。 即时生效 setenforce 0 关闭防火墙的方法为: 永久性...

    Linux redhat5.6 安装oracle11g 详细步骤说明

    ② 选择服务时,建议全部选中,关闭防火墙,关闭selinux ③ 安装时,不要设置主机名,ip和DNS,在安装完毕之后再设置 ④ 版本:rhel-server-5.8-x86_64-dvd.iso 注意:本次使用VMware Workstation虚拟机安装,安装...

    Linux下SSH免密码登录配置详解

    两台服务器的信息如下:  ...1.关闭防火墙和SELinux Redhat使用了SELinux来增强安全,关闭的办法为: a. 永久有效 修改 /etc/selinux/config 文件中的 SELINUX=enforcing 修改为 SELINUX=disabled ,然后重启。

    RedHat and Oracle 离线安装oracle教程

    4.关闭seLinux 5.安装依赖包 6.关闭防火墙 7.添加oinstall、dba组,新建oracle用户并加入oinstall、dba组中 8.创建oracle安装目录 9.检查配置内核参数 10.修改用户的限制文件 11.修改/etc/pam.d/login文件 12.修改/...

    centos6.5安装oracle11g数据库指南.docx

    2.2 关闭防火墙 3 2.3 关闭Selinux 3 2.4 修改主机名: 4 2.5 添加主机与ip对应关系 4 2.6 修改内核参数 4 2.7 添加系统资源配置 5 2.8 添加用户和组 5 2.9 创建安装目录及设置权限 6 2.10 设置oracle用户的环境变量...

    服务器环境检查汇总.docx

    检查SELinux setenforce 0 关闭SELinux vim /etc/selinux/config SELINUX=disabled 服务器环境检查汇总全文共17页,当前为第10页。服务器环境检查汇总全文共17页,当前为第10页。SELINUXTYPE=targeted 服务器环境...

    Centos7.3安装部署最新版Zabbix3.4的方法(图文)

    关闭防火墙及selinux systemctl stop firewalld.service systemctl disable firewalld.service sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config grep SELINUX=disabled /etc/selinux/config ...

    CentOS6.7系统中配置LNMP环境

    2:关掉防火墙 #重启后生效开启 [root@localhost ~]# chkconfig iptables off or #即时生效,重启后失效开启 [root@localhost ~]# service iptables stop 关闭selinux #即时生效,重启后失效 [root@localhost ~]#...

    Linux常用的命令。。。。。

    关闭selinux /etc/sysconfig/selinux suid 针对文件 rwsrwxrwx 拥有者有x权限的基础才能有s权限 其他用户可以临时的拥有用户的权限 sgid 针对文件与目录 临时拥有用户组的权限 eg.chgrp group directory ...

    ansible_roles_bind9

    项目说明通过ansbile一键自动化部署bind9 dns服务,项目其包含两大功能:初始化系统操作(如关闭防火墙及selinux、安装jdk、修改ulimit参数、修改sysctl参数等)、安装docker及启动bind服务容器。适用平台centos、...

    Centos7 安装达梦数据库的教程

    关闭防火墙 和 Selinux: [root@slave1 software]# systemctl stop firewalld [root@slave1 software]# systemctl disable firewalld [root@slave1 software]# vi /etc/selinux/config [root@slave1

Global site tag (gtag.js) - Google Analytics