Sistemas‎ > ‎Linux‎ > ‎

Adicionar memória swap

Fonte: http://www.bosontreinamentos.com.br/linux/como-adicionar-espaco-de-swap-no-linux/

2048MB x 1024 = 2097152

# mkdir /swap
# dd if=/dev/zero of=/swap/swap01 bs=1024 count=2097152
# mkswap /swap/swap01
# swapon /swap/swap01
# chmod 600 /swap/swap01
# swapon -s

# vi /etc/fstab
# /swap/swap01 swap swap defaults 0 0

# free
Comments