centos关闭防火墙

systemctl stop firewalld
systemctl stop iptables

systemctl disable firewalld.service
systemctl disable iptables.service

sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
setenforce 0

posted @ 2021-05-28 13:21  Maltone  阅读(81)  评论(0)    收藏  举报