以ceph模块为例:
- #cd /etc/sysconfig/modules/
- #vim ceph.modules
- 在文件中添加如下内容
#!/bin/sh
/sbin/modinfo -F filename ceph > /dev/null 2>&1
if [ $? -eq 0 ]; then
/sbin/modprobe ceph
fi- #chmod 755 ceph.modules //这一步至关重要
- #reboot
现在重启,在命令行运行
#lsmod | grep ceph
就可以看到ceph模块被加载到系统中 :)
这只是加载模块的一种方式