CentOS7关闭Swap分区
1、注释/etc/fstab关于swap的配置
2、执行如下命令
echo vm.swappiness=0 >> /etc/sysctl.conf
3、重启
reboot
4、验证(Swap行均为0)
free -m
Embrace your dreams and unlock your full potential at every stage of life.
1、注释/etc/fstab关于swap的配置
2、执行如下命令
echo vm.swappiness=0 >> /etc/sysctl.conf
3、重启
reboot
4、验证(Swap行均为0)
free -m