sudo touch /swap
sudo dd if=/dev/zero of=/swap bs=1024 count=1024000
sudo mkswap /swap
sudo swapon /swap
sudo sh -c ‘echo “/swap swap swap defaults 0 0” >> /etc/fstab’
设置交换空间
最新推荐文章于 2024-05-20 10:22:31 发布
sudo touch /swap
sudo dd if=/dev/zero of=/swap bs=1024 count=1024000
sudo mkswap /swap
sudo swapon /swap
sudo sh -c ‘echo “/swap swap swap defaults 0 0” >> /etc/fstab’