Chinaunix首页 | 论坛 | 博客
  • 博客访问: 64962
  • 博文数量: 20
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 185
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-02 11:15
文章分类
文章存档

2009年(4)

2008年(16)

我的朋友

分类: LINUX

2008-10-17 13:44:36

   1. choose a location where you have lots of space (/usr comes to mind)

  2. create a file the size you want the swap to be:

  dd if=/dev/zero of=/usr/swap bs=1024 count=100000

  (the above will create a file 100Mb in size, so adjust the count as yousee fit)

  3. run the command: mkswap /usr/swap

  4. run the command: swapon /usr/swap

  5. check free that you just added 100Mb of swap

  6. if you want this to be permanent through reboots, you'll need to add the appropriate line to /etc/fstab
阅读(861) | 评论(0) | 转发(0) |
0

上一篇:Oracle Tips

下一篇:ubuntu DHCP with static DNS

给主人留下些什么吧!~~