要求:在管理员的权限下 1.建立一个swap文件 dd if=/dev/zero of=/root/swapfile bs=1024 count=11 2.格式化swapfile mkswap swapfile 3.激活swapfile swapon swapfilefile