ERROR: Failed to load nf_conntrack module: modprobe: ERROR: could not find module by name='nf_conntrack' 问题处理
在centos 7下,卸载了iptalbes防火墙,然后重新安装firewalld,在启动防火墙的时候,通过systemctl status firewalld看状态,有报错:
ERROR: Failed to load nf_conntrack module: modprobe: ERROR: could not find module by name='nf_conntrack'
具体的解决方法:
1.
mkdir /lib/modules/$(uname -r)
2.
touch /lib/modules/$(uname -r)/modules.{builtin,order}
3.
for i in /sys/module/*; do echo kernel/${i##**/}.ko; done >> /lib/modules/$(uname -r)/modules.builtin
4.
depmod -a
5.
systemctl restart firewalld.service
重启后,查看状态,解决问题。