防火墙
sudo service iptables status
:查看防火墙是否关闭sudo service iptables stop
:关闭防火墙sudo service iptables start
:开启防火墙sudo chkconfig iptables off/on
:永久关闭/开启防火墙
selinux 禁用步骤
sodo vi /etc/sysconfig/selinux
SELINUX=DISABLED
sudo reboot
:重启机器
sudo service iptables status
:查看防火墙是否关闭sudo service iptables stop
:关闭防火墙sudo service iptables start
:开启防火墙sudo chkconfig iptables off/on
:永久关闭/开启防火墙sodo vi /etc/sysconfig/selinux
SELINUX=DISABLED
sudo reboot
:重启机器