Linux永久關閉防火牆 firewalld和sellinux設置


 

1、關閉 firewalld:

[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable firewalld

--------------------------------------

2、關閉 selinux:

[root@localhost ~]# vi /etc/sysconfig/selinux 

SELINUX=disabled    #修改

3、重啟機器:

[root@localhost ~]# shutdown -r now

 4、close_firewalld_selinux.sh

#!/bin/bash
systemctl stop firewalld
systemctl disable firewalld
sed -i 's#SELINUX=enforcing#SELINUX=disabled#' /etc/sysconfig/selinux
shutdown -r now

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM