Total Pageviews

Saturday 14 November 2015

使用文件手工挂载SWAP

1
2
3
dd if=/dev/zero of=/swap bs=1024 count=524288
mkswap /swap
swapon /swap
开机加载:
1
2
cat /etc/fstab
/swap  swap  swap    defaults 0 0