Linux筆記_關閉 防火牆 和 SELINUX

1、查看防火牆的狀態       $  sudo service iptables status

2、關閉防火牆                  $  sudo service iptables stop

3、啓動防火牆                  $  sudo service iptables start

4、永久性設置防火牆 關閉 | 開啓        $ sudo chkconfig iptables off  | on

      如何檢查,防火牆是否永久關閉呢?     $ sudo chkconfig --list|grep iptables


5、禁用SELINUX

$ sudo vi /etc/sysconfig/selinux

注意: 修改之後一定要重啓機器才能生效       $   sudo reboot



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章