[RHEL7.1]关闭防火墙及SElinux
1. 先查看防火墙状态
[root@bogon ~]#
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: active (running) since 一 2015-05-25 22:53:54 CST; 3min 18s ago
Main PID: 979 (firewalld)
CGroup: /system.slice/firewalld.service
└─979 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
5月 25 22:53:54 localhost.localdomain systemd[1]: Started firewalld - dynami...
Hint: Some lines were ellipsized, use -l to show in full.
2. 关闭防火墙
[root@bogon ~]#
[root@bogon ~]#
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: inactive (dead) since 一 2015-05-25 23:03:56 CST; 3s ago
Process: 979 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
Main PID: 979 (code=exited, status=0/SUCCESS)
5月 25 22:53:54 localhost.localdomain systemd[1]: Started firewalld - dynami...
5月 25 23:03:55 bogon systemd[1]: Stopping firewalld - dynamic firewall da.....
5月 25 23:03:56 bogon systemd[1]: Stopped firewalld - dynamic firewall daemon.
Hint: Some lines were ellipsized, use -l to show in full.
3. 查看防火墙服务是否开机启动
[root@bogon ~]#
enabled #开启
4. 关闭防火墙开机启动
[root@bogon ~]#
rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'
rm '/etc/systemd/system/basic.target.wants/firewalld.service'
[root@bogon ~]#
disabled
二、关闭SELinux
1. 查看当前SELinux状态
[root@bogon ~]#
Enforcing
2. 关闭SElinux
[root@bogon ~]#
[root@bogon ~]# getenforce
Permissive
3. 编辑配置文件
[root@bogon ~]#
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=permissive #修改此参数
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
- [RHEL7.1]关闭防火墙及SElinux
- Rhel7.2的网络配置,防火墙、SELinux服务关闭及YUM源配置
- RHEL 7关闭防火墙及SElinux
- Rhel7.2的网络配置,防火墙、SELinux服务关闭及YUM源配置
- rhel7的基本操作(查看IP配置,关闭防火墙,临时或永久关闭selinux,常用命 16ca 令操作)
- Redhat关闭SELinux和防火墙的办法
- [置顶] Centos防火墙及SELINUX关闭
- 关闭SELinux及防火墙,设定运行级别
- CentOS 关闭防火墙和SELINUX配置
- SELinux是什么意思,如何关闭?Linux下的防火墙用什么命令打开?
- CentOS 7.0 关闭防火墙和selinux
- SElinux以及防火墙的关闭
- RHEL6—关闭 SELinux
- redhat7 centos7 关闭SELinux和防火墙的办法
- Linux笔记_关闭 防火墙 和 SELINUX
- 关闭SELinux和防火墙
- RHEL5中不用关闭SELinux而成功启动Samba
- Linux 下SElinux以及防火墙的关闭
- centos7 关闭防火墙和selinux
- RHEL5关闭selinux的不同