Swap
Lukeclever ComputerSavvyMedic
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命令查看磁盘剩余可用空间

image

使用 -h 可以使输出更符合人类阅读习惯

查看当前是否启用swap

image

开启swap

创建作为swap分区文件

image

建立swap的文件系统

image

启用swap

image

启用后效果

free -m

image

htop

image

 Comments
Comment plugin failed to load
Loading comment plugin