linux下修改SWAP空间大小

以下的操作都要在root用户下进行,使用free -m 查询当前swap空间大小。

[root@localhost Desktop]# free -m
total       used       free     shared    buffers     cached
Mem:           988        926         62          0          6        446
-/+ buffers/cache:        472        516
Swap:         3983          0       3983

修改的步骤如下:首先先建立一个分区,采用dd命令比如 (更多…)