Job for iptables.service failed because the control process exited with error code. See "systemctl status iptables.service" and "journalctl -xe" for details.
當重啟防火墻時候出現這個,
在centos7默認的防火墻是firewalld防火墻,在這里我要使用的是iptables做配置,所以產生了沖突,選擇其一即可,我選擇關閉掉firewalld防火墻。
1、關閉firewalld防火墻
systemctl stop firewalld
systemctl mask firewalld
2、開放443端口(HTTPS)
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
3、保存上述規則
service iptables save
4、開啟服務
systemctl restart iptables.service