CentOS7关闭防火墙和SELinux
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                CentOS7关闭防火墙和SELinux
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                CentOS7關閉防火墻和SELinux
關閉防火墻
臨時關閉防火墻
systemctl stop firewalld- ?
臨時打開防火墻
systemctl start firewalld防火墻開機關閉
systemctl disable firewalld防火墻開機啟動
systemctl enable firewalld查看防火墻狀態
systemctl status firewalld關閉selinux
臨時關閉SELinux
setenforce 0臨時打開SELinux
setenforce 1開機關閉SELinux
vi /etc/selinux/config 修改"SELINUX=disabled"為"SELINUX=disabled"查看SELinux狀態
getenforce- ?
總結
以上是生活随笔為你收集整理的CentOS7关闭防火墙和SELinux的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: centos 7 网络配置( 网关、dn
- 下一篇: Linux 初始化之 Systemd机制
