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