centos7 安装完毕防火墙无法启动
#systemctl start firewalld.service;
提示:Failed to start firewalld.service: Unit firewalld.service is masked.
请问应如何启动防火墙,谢谢
#systemctl start firewalld.service;
提示:Failed to start firewalld.service: Unit firewalld.service is masked.
请问应如何启动防火墙,谢谢
5 Answers
对linux不熟,麻烦大大帮看下iptables 状态是否正常,十分谢谢!
status iptables.service
鈼[0m iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)
Active: active (exited) since Thu 2016-04-14 09:54:08 CST; 3h 6min ago
Main PID: 468 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/iptables.service
Apr 14 09:54:08 iZ255ry65e3Z systemd[1]: Starting IPv4 firewall with iptables...
Apr 14 09:54:08 iZ255ry65e3Z iptables.init[468]: iptables: Applying firewall rules: [ OK ]
Apr 14 09:54:08 iZ255ry65e3Z systemd[1]: Started IPv4 firewall with iptables.
status iptables.service
鈼[0m iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)
Active: active (exited) since Thu 2016-04-14 09:54:08 CST; 3h 6min ago
Main PID: 468 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/iptables.service
Apr 14 09:54:08 iZ255ry65e3Z systemd[1]: Starting IPv4 firewall with iptables...
Apr 14 09:54:08 iZ255ry65e3Z iptables.init[468]: iptables: Applying firewall rules: [ OK ]
Apr 14 09:54:08 iZ255ry65e3Z systemd[1]: Started IPv4 firewall with iptables.
Please login or Register to submit your answer