A quick copy/paste to enable a 4GB swap file on Centos 6/7:
sudo fallocate -l 4G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile echo "/swapfile swap swap sw 0 0" >> /etc/fstab
Previous Post Next Post
Copyright 2026 Jaytag Computer Limited Registered in the UK as: Jaytag Computer Limited, No 6059116. VAT No 110260580 3rd Floor, Suffolk House, George Street, Croydon, Surrey, CR0 0YN
Privacy Policy · Terms of Business