Centos7学习三关闭防火墙和SElinux
2019-02-13 03:38
253 查看
一、防火墙
临时关闭防火墙
systemctl stop firewalld
临时打开防火墙
systemctl start firewalld
永久关闭防火墙
systemctl disable firewalld
防火墙开启启动
systemctl enable firewalld
查看防火墙状态
systemctl status firewalld
防火墙开启状态
防火墙关闭状态
二、SElinux
临时关闭SElinux
setenforce 0
临时开启SElinux
setemforce 1
查看SElinux状态
getenforce
永久关闭SElinux
vi /etc/selinux/config
将SELINUX的值设为disable
相关文章推荐
- Linux学习之设置联网,关闭防火墙,关闭selinux
- centos7 关闭SELINUX 防火墙
- CentOS7关闭防火墙和SELinux
- Centos7基础环境配置(为普通用户添加root权限/更换yum源/关闭防火墙/系统SELinux设置)
- 学习linux第一步,关闭selinux防火墙
- CentOS7关闭防火墙和selinux
- CentOS7关闭防火墙和SELinux
- Centos7 配置固定IP与关闭防火墙--关闭SELinux
- CentOS7关闭防火墙和SELinux
- centos7关闭防火墙
- CentOS7的防火墙关闭问题
- CentOS7使用firewalld打开关闭防火墙与端口
- centos7关闭防火墙(转)
- centOS7关闭防火墙
- centos7关闭防火墙
- CentOS7使用firewalld打开关闭防火墙与端口
- SUSE Linux 10关闭防火墙和selinux的命令
- Linux 下SElinux以及防火墙的关闭
- linux 与winscp /SecureCRT 链接关闭防火墙以及selinux问题
- linux 与winscp /SecureCRT 链接关闭防火墙以及selinux问题