Increase Swap Size on a Raspberry Pi

Step 1: Check the Current Swap Configuration

sudo swapon --show
free -h

Step 2: Disable the Current Swap

sudo dphys-swapfile swapoff

Step 3: Edit the Swap File Configuration

sudo vi /etc/dphys-swapfile
# CONF_SWAPSIZE=2048

Step 4: Regenerate and Enable the Swap File

sudo dphys-swapfile setup
sudo dphys-swapfile swapon

Step 5: Verify the New Swap Configuration

sudo swapon --show
sudo reboot

留下评论

通过 WordPress.com 设计一个这样的站点
从这里开始