×

CentOS7及CentOS6下开机加载内核模块

hqy hqy 发表于2019-04-21 00:57:08 浏览3044 评论0

抢沙发发表评论

CentOS7:

以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 /etc/sysconfig/modules/ceph.modules# reboot# lsmod | grep ceph

CentOS6:

以ip_vs为例:
临时生效# modprobe ip_vs# lsmod | grep ip_vs开启启动生效# echo "modprobe ip_vs">>/etc/rc.sysinit


 您阅读本篇文章共花了: 

打赏

本文链接:https://kinber.cn/post/614.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

群贤毕至

访客