Need to migrate your e-mails to a new server? Free and paid versions of our online tool available.
Hero Image

Manually adding swap and activating on linux

Create swapfile

sudo install -o root -g root -m 0600 /dev/null /swapfile

Write out a 4GB file named ‘swapfile’

dd if=/dev/zero of=/swapfile bs=1k count=4096k

Let linux know about swap file

mkswap /swapfile

Activate swap

swapon /swapfile

activate swap also after boot. Add to the file system table

echo "/swapfile       swap    swap    auto      0       0" | sudo tee -a /etc/fstab

Other Related Posts:

Nginx tuning for best perfomance

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) reque...

22nd Jan 2019

Install RabbitMQ on Almalinux 8

Install RabbitMQ on CentOS 7

sudo dnf install epel-release
sudo dnf update

Install Erlang

Add repository

sudo dnf install https://packages.erlang-solutions.com/erlang-solutions-2.0-1.noarch.rpm

Install erlang and dependencies

sudo dnf install erlang socat logrotate

Install RabbitMQ

A...

29th Dec 2022