Centos 关闭安全防护

防火墙

阻止攻击,对网络间的通信做安全

  • Centos7

查看状态: systemctl status firewalld

临时关闭:systemctl stop firewalld

关闭开机启动/永久关闭: systemctl disable firewalld

  • Centos6

查看状态: service iptables status

临时关闭:service iptables stop

关闭开机启动/永久关闭:chkconfig iptables off

setlinux

保护的是文件,对网络访问量限制

查看状态:getenforce

临时关闭:setenforce 0

关闭开机启动/永久关闭修改配置文件: /etc/selinux/config 修改enforcingdisabled

Last modification:December 6th, 2018 at 03:48 pm