初學linux通常須要關閉下面幾個東西
1 防火牆
/etc/init.d/iptables stop
開機就關閉chkconfig iptables off
2 臨時關閉SELinux
getenforce 查是SELinux狀態
setenforce 0 設置SELinux 成爲permissive模式
若是setenforce 1則設置爲SELinux成爲enforcing模式
3 修改配置文件須要重啓機啓
查看並去掉空格和說明文字
cat /etc/selinux/config | grep -Ev "^#|^$"
修改SELINUX狀態
sed -i "s%enforce%disable%g" /etc/selinux/config
查看是否修改
cat /etc/selinux/config | grep -Ev "^#|^$"
4 重啓服務器
init 6
或
shutdown -r nowlinux