linux下如何关闭防火墙

来源:互联网 发布:tomcat linux 启动命令 编辑:程序博客网 时间:2024/05/23 00:04
Centos6.x/etc/init.d/iptables stopchkconfig iptables offsed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/configgrep SELINUX=disabled /etc/selinux/configsetenforce 0Centos7.xsystemctl stop firewalld.servicesystemctl disable firewalld.servicesed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/configgrep SELINUX=disabled /etc/selinux/configsetenforce 0
原创粉丝点击