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 2024 Jaytag Computer Limited Registered in the UK as: Jaytag Computer Limited, No 6059116. VAT No 110260580 Maddison House, 226 High Street, Croydon, Surrey, CR9 1DF