简单来说SELinux是一个安全加强工具 要关闭可以使用命令:setenforce 0
永久关闭可以修改文件/etc/sysconfig/selinux,找到以下内容:
SELINUX=enforcing
修改为:
SELINUX=disabled
这个工具一般情况不会用到,可以永久关闭。
Linux下的防火墙是iptables和ip6tables服务可以用下面的命令打开
长期性:
chkconfig iptables on
service iptabls start
chkconfig ip6tables on
service ip6tables start
注意:在用service命令前用service servicename status检查是否该服务已经打开了,如果没打开才用上面列出start选项, 否则应该用restart选项更改。
一次性:
如果是临时一次性的,则只需要按照上面的说明使用service命令就可以了。