linux(centos7) firewalld无法启动的解决办法

上一篇 / 下一篇  2017-07-24 10:36:25 / 个人分类:环境部署

之前搭好的服务器,早上来了被人手动关机了,部署的接口访问不了,tomcat启动正常,怀疑是防火墙的原因。
用命令system start firewalld,提示Redirecting to /bin/systemctl start  firewalld.service
Failed to start firewalld.service: Unit is masked.
用systemctl status iptables.service查看
[root@localhost bin]# systemctl status iptables.service
● iptables.service - IPv4 firewall with iptables
   Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since 一 2017-07-24 10:18:37 CST; 24s ago
  Process: 4340 ExecStop=/usr/libexec/iptables/iptables.init stop (code=exited, status=0/SUCCESS)
  Process: 4503 ExecStart=/usr/libexec/iptables/iptables.init start (code=exited, status=1/FAILURE)
 Main PID: 4503 (code=exited, status=1/FAILURE)

7月 24 10:18:37 localhost.localdomain systemd[1]: Starting IPv4 firewall with iptables...
7月 24 10:18:37 localhost.localdomain iptables.init[4503]: /etc/sysconfig/iptables-config:行55: -A: 未找到命令
7月 24 10:18:37 localhost.localdomain iptables.init[4503]: iptables: Applying firewall rules: iptables-restore: line 14 failed
7月 24 10:18:37 localhost.localdomain iptables.init[4503]: [失败]
7月 24 10:18:37 localhost.localdomain systemd[1]: iptables.service: main process
7月 24 10:18:37 localhost.localdomain systemd[1]: Failed to start IPv4 firewall
7月 24 10:18:37 localhost.localdomain systemd[1]: Unit iptables.service entered
7月 24 10:18:37 localhost.localdomain systemd[1]: iptables.service failed.
提示启动失败
参考以下网址
http://www.cnblogs.com/hengwei/p/5221930.html
安装了iptables服务,用service iptables start启动成功,再访问接口访问成功



TAG:

 

评分:0

我来说两句

Open Toolbar