[fix] 256MB swap is enough
This commit is contained in:
parent
8658db8ff6
commit
26f9c760df
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue