Tag: swap

CentOS 7 add swap

Adding swap to a CentOS 7 AWS virtual machine This is the steps for adding swap space to an CentOS 7 server. dd if=/dev/zero of=/swapfile count=2048 bs=1MiB chmod 600 /swapfile chown root. /swapfile mkswap /swapfile swapon /swapfile echo “/swapfile swap swap sw 0 0” >> /etc/fstab Check to make sure it created correctly swapon -s […]