CentOS7关闭Swap分区 由于安装k8s需要关闭wsap分区,因此总结一份 注释/etc/fstab关于swap的配置 执行如下命令 echo vm.swappiness=0 >> /etc/sysctl.conf 重启 sudo reboot 验证(Swap行均为0) free -m