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的主要内容,如果未能解决你的问题,请参考以下文章