美文网首页
Centos7 开机启动自动加载内核

Centos7 开机启动自动加载内核

作者: ImitationShow丶吃 | 来源:发表于2020-03-19 15:22 被阅读0次

在安装K8s,需要使用到 IPVS 做转发,需要使 IPVS 模块开机加载

这能使用的一种方法

# 首先
vim /etc/sysconfig/modules/ipvs.modules
# 写入这些需要加载的内核模块
modprobe ip_vs
modprobe ip_vs_rr
modprobe ip_vs_wrr
modprobe ip_vs_sh
modprobe nf_conntrack_ipv4
# 给予权限且加载
chmod 755 /etc/sysconfig/modules/ipvs.modules
source /etc/sysconfig/modules/ipvs.modules
# 查看是否已经加载模块 
lsmod | grep ip_vs

相关文章

网友评论

      本文标题:Centos7 开机启动自动加载内核

      本文链接:https://www.haomeiwen.com/subject/thrlyhtx.html