Swap in Ubuntu
It has been 0 days since the last update of this post. Some contents may be outdated. Please pay attention to screening.
在Ubuntu中开启swap
前期准备
使用df命令查看磁盘剩余可用空间

使用 -h 可以使输出更符合人类阅读习惯
查看当前是否启用swap

开启swap
创建作为swap分区文件

建立swap的文件系统

启用swap

启用后效果
free -m

htop

Comments
Comment plugin failed to load
Loading comment plugin