add swap file if you only have 1G RAM

Posted otfsenter

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了add swap file if you only have 1G RAM相关的知识,希望对你有一定的参考价值。

dd if=/dev/zero of=/swapfile1 bs=1024 count=524288

mkswap /swapfile1

swapon /swapfile1

vi /etc/fstab

# edit /etc/fstab file, add the following line

/swapfile1 none swap sw 0 0

# save and quit

free -m

swapon -s

以上是关于add swap file if you only have 1G RAM的主要内容,如果未能解决你的问题,请参考以下文章

Swap file "/etc/.hosts.swp" already exists! [O]pen Read-Only, (E)dit anyway, (R)ecover, (D

Swap file "/etc/.hosts.swp" already exists! [O]pen Read-Only, (E)dit anyway, (R)ecover, (D

​老男孩教育每日一题第123天- 出现Swap file….already exists以下错误如何解决?

编辑文件警告Swap file “apiserver.swp…” already exists!

swap file "*.swp" already exists问题解决!!!

You can add an index on a column that can have NULL values if you are using the MyISAM, InnoDB, or M