安装k8s需要关闭wsap分区

1、注释/etc/fstab关于swap的配置Centos7关闭Swap分区

2、执行如下命令

echo vm.swappiness=0 >> /etc/sysctl.con

3、重启服务器

reboot

4、验证(Swap行均为0)
free -m
Centos7关闭Swap分区

 

临时关闭:

swapoff -a

相关文章:

  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2022-02-24
  • 2021-05-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
相关资源
相似解决方案