首页 > 其他 > 详细

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

时间:2018-08-08 14:20:35      阅读:436      评论:0      收藏:0      [点我收藏+]

原因:因为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

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

原文:https://www.cnblogs.com/chosenone/p/9442371.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!