查看swap 空间大小(总计): # free -m 默认单
swapon -s 等价于cat /proc/swaps
添加交换空间
3.1 添加一个交换分区,步骤如下:
3.2 添加一个交换文件
4 删除交换空间: