创建swap分区

Posted on Posted in linux
# 创建 5000M 大小的分区
sudo dd if=/dev/zero of=/swapfile bs=1M count=5000
sudo mkswap /swapfile
sudo swapon /swapfile
# 删除 swap
sudo swapoff /swapfile
sudo rm /swapfile
» 转载请注明来源:呢喃 » 创建swap分区

Leave a Reply

Your email address will not be published. Required fields are marked *

4 + nine =