Using rocky linux 8

2023-02-07

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!
Killed

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

https://bugzilla.redhat.com/show_bug.cgi?id=1907030