Using rocky linux 8


Wanted to start web server(apache) on Rocky Linux.

sudo dnf install httpd epel-release
sudo dnf install certbot python3-certbot-apache

The command failed with memory error.

Out of memory allocating 285212672 bytes!

Needed to set swap memory. Maybe the minimun is 1GB.

dd if=/dev/zero of=/mnt/2gb.swap count=2048 bs=1024K
mkswap /mnt/2gb.swap
chmod 600 /mnt/2gb.swap
swapon /mnt/2gb.swap