若/etc/sysconfig/iptables不存在,即没有安装iptables防火墙
可以通过以下命令安装iptables防火墙
systemctl stop firewalld
systemctl mask firewalld
yum install iptables-services
service iptables status
//设置开机启动
systemctl enable iptables
Powered by: 博客园 Copyright © 2024 Easonay_Y Powered by .NET 8.0 on Kubernetes