一个常见的问题之后升级通过百胜在 Centos 的内核不创建新的内核模块.
此错误的一个例子发生当你尝试使用 grep 在下面打印.
1 2 3 |
[root@vps3 /]# iptables -L -n | grep "meu ip" FATAL: Could not load /lib/modules/2.6.32-042stab123.9/modules.dep: No such file or directory [root@vps3 /]# |
这表明目录 2.6.32-042刺123。9 因此可以加载您的内容中的任何模块.
若要更正此问题,最简单的方法是这个食谱:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
[root@vps3 /]# mkdir -p /lib/modules/`uname -r` [root@vps3 /]# cd /lib/modules/`uname -r` [root@vps3 2.6.32-042stab123.9]# depmod [root@vps3 2.6.32-042stab123.9]# ls -lah total 64K drwxr-xr-x 2 root root 4.0K Oct 18 16:11 . dr-xr-xr-x 10 root root 4.0K Oct 18 16:11 .. -rw-r--r-- 1 root root 45 Oct 18 16:11 modules.alias -rw-r--r-- 1 root root 12 Oct 18 16:11 modules.alias.bin -rw-r--r-- 1 root root 69 Oct 18 16:11 modules.ccwmap -rw-r--r-- 1 root root 0 Oct 18 16:11 modules.dep -rw-r--r-- 1 root root 12 Oct 18 16:11 modules.dep.bin -rw-r--r-- 1 root root 73 Oct 18 16:11 modules.ieee1394map -rw-r--r-- 1 root root 141 Oct 18 16:11 modules.inputmap -rw-r--r-- 1 root root 81 Oct 18 16:11 modules.isapnpmap -rw-r--r-- 1 root root 74 Oct 18 16:11 modules.ofmap -rw-r--r-- 1 root root 99 Oct 18 16:11 modules.pcimap -rw-r--r-- 1 root root 43 Oct 18 16:11 modules.seriomap -rw-r--r-- 1 root root 131 Oct 18 16:11 modules.softdep -rw-r--r-- 1 root root 49 Oct 18 16:11 modules.symbols -rw-r--r-- 1 root root 12 Oct 18 16:11 modules.symbols.bin -rw-r--r-- 1 root root 189 Oct 18 16:11 modules.usbmap [root@vps3 2.6.32-042stab123.9]# iptables -L -n | grep "meu ip" [root@vps3 2.6.32-042stab123.9]# |
这将创建目录和为内核模块的依赖关系目前在使用中 (uname -r
).
如果上面的命令不解决问题. 尝试重新安装内核通过下面的命令与百胜餐饮集团.
1 2 |
mv /boot/grub/grub.conf /boot/grub/grub.conf.bak yum -y reinstall kernel |
然后尝试前面列出的命令.
我希望你找到它有用都当它是我.