Vérifier la zone de swap
root@srv-khanh:~# /sbin/dphys-swapfile setup
wanted –> /var/swap=100MByte, checking existing: keeping it
Modifier le fichier /etc/dphys-swapfile pour changer la valeur du SWAP
CONF_SWAPSIZE=2048
Arrêt et redémarrer pour la prise en compte de la nouvelle valeur du SWAP
root@srv-khanh:~# /etc/init.d/dphys-swapfile stop
[ ok ] Stopping dphys-swapfile (via systemctl): dphys-swapfile.service.
root@srv-khanh:~# /etc/init.d/dphys-swapfile start
[ ok ] Starting dphys-swapfile (via systemctl): dphys-swapfile.service.
root@srv-khanh:~# /sbin/dphys-swapfile setup
want /var/swap=2048MByte, checking existing: keeping it

root@srv-khanh:~# /sbin/dphys-swapfile swapon


Comments