Open thibaultyou opened 3 years ago
sudo dd if=/dev/zero of=/swapfile bs=128M count=32 sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile sudo swapon -s sudo chmod 666 /etc/fstab sudo echo "/swapfile swap swap defaults 0 0" >> /etc/fstab sudo chmod 644 /etc/fstab # sudo echo "512" > /proc/sys/net/core/somaxconn sudo chmod 666 /etc/sysctl.conf sudo echo "vm.overcommit_memory = 1" >> /etc/sysctl.conf sudo sysctl vm.overcommit_memory=1 sudo chmod 644 /etc/sysctl.conf