Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Create a swap file
- sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
- sudo chmod 600 /swapfile
- sudo mkswap /swapfile
- sudo swapon /swapfile
- vi /etc/fstab
- /swapfile swap swap defaults 0 0
- ## check
- sudo swapon --show
- sudo free
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement