時間:2016年10月30號
一般在做Linux的實驗的時候,都會把Linux系統的防火牆關閉,避免在做實驗時被影響。
系統安裝完成後,把iptables防火牆,跟selinux關閉,首先查看防火牆的狀態:
service iptables status
查看selinux的狀態命令:
/usr/sbin/sestatus -v
臨時關閉防火牆的命令:service iptables stop
永久關閉防火牆的命令:chkconfig iptables off{需要重啓才生效}
永久關閉selinux:
vim /etc/selinux/config 進入後修改 "SELINUX=enforcing"這一項,改爲:SELINUX=disabled保存退出即可
enforcing=開啓
disabled=關閉