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

优质内容筛选与推荐>>
1、网页(Html)转成Pdf
2、hdu 1171 Big Event in HDU (母函数)
3、疯狂Android讲义 这本书如何?
4、shop--7.主从库同步与读写分离
5、什么是有效高效的沟通


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号