[fix] 256MB swap is enough

This commit is contained in:
Alexis Gavoty 2014-09-23 10:26:11 +02:00
parent 8658db8ff6
commit 26f9c760df
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ sudo apt-get install git build-essential libxslt-dev python-dev python-virtualen
# Check Swap # Check Swap
if [ $(sudo swapon -s | wc -l) = 1 ]; if [ $(sudo swapon -s | wc -l) = 1 ];
then then
sudo dd if=/dev/zero of=/tmp/myswapfile bs=1M count=1024 sudo dd if=/dev/zero of=/tmp/myswapfile bs=1M count=256
sudo chmod 600 /tmp/myswapfile sudo chmod 600 /tmp/myswapfile
sudo mkswap /tmp/myswapfile sudo mkswap /tmp/myswapfile
sudo swapon /tmp/myswapfile sudo swapon /tmp/myswapfile