用的是centos7 選擇的是 一鍵安裝包v3.1 apache2.4 php7.0 mysql5.6 nginx1.10 在安裝的最后出現(xiàn)有提示說(shuō) iptables 有問(wèn)題:***********************************
Job for iptables.service failed because the control process exited with error code. See "systemctl status iptables.service" and "journalctl -xe" for details.
Created symlink from /etc/systemd/system/basic.target.wants/iptables.service to /usr/lib/systemd/system/iptables.service.
iptables v1.4.21: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.4.21: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.4.21: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.4.21: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables: Nothing to save.
***********************************
下面是查詢的結(jié)果
[root@host /]# 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 Sat 2016-11-19 17:07:18 CST; 8min ago
Main PID: 30283 (code=exited, status=1/FAILURE)
Nov 19 17:07:18 host.com systemd[1]: Starting IPv4 firewall with iptables...
Nov 19 17:07:18 host.com iptables.init[30283]: iptables: Applying firewall...'
Nov 19 17:07:18 host.com iptables.init[30283]: Error occurred at line: 4
Nov 19 17:07:18 host.com iptables.init[30283]: Try `iptables-restore -h' o....
Nov 19 17:07:18 host.com iptables.init[30283]: [FAILED]
Nov 19 17:07:18 host.com systemd[1]: iptables.service: main process exite...RE
Nov 19 17:07:18 host.com systemd[1]: Failed to start IPv4 firewall with i...s.
Nov 19 17:07:18 host.com systemd[1]: Unit iptables.service entered failed...e.
Nov 19 17:07:18 host.com systemd[1]: iptables.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@host /]# iptables -L
iptables v1.4.21: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
[root@host /]# rpm -qa iptables
iptables-1.4.21-16.el7.x86_64
[root@host /]# systemctl restart iptables.service
Job for iptables.service failed because the control process exited with error code. See "systemctl status iptables.service" and "journalctl -xe" for details.
[root@host /]# yum install iptables
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirror.fileplanet.com
* extras: repos.lax.quadranet.com
* updates: mirrors.ocf.berkeley.edu
Package iptables-1.4.21-16.el7.x86_64 already installed and latest version
Nothing to do