centos 报错 “Job for iptables.service failed because the control process exited with error code.”的解决办法


原因:因为centos7默认的防火墙是firewalld防火墙,不是使用iptables,因此需要先关闭firewalld服务,或者干脆使用默认的firewalld防火墙。

操作步骤:

关闭防火墙

1.systemctl stop firewalld 


2.systemctl mask firewalld

在使用iptables服务

#开放443端口(HTTPS)
3.iptables -A INPUT -p tcp --dport 443 -j ACCEPT

#保存上述规则
4.service iptables save

#开启服务
5.systemctl restart iptables.service


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM