Linux VPS

Create a swap file

Add swap space to protect small VPS from running out of memory. · 3 dəq oxu

Bu səhifə hələlik ingilis dilindədir. Tərcümə tezliklə əlavə ediləcək.

fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab

Lower the swappiness so swap is used only when needed:

echo 'vm.swappiness=10' > /etc/sysctl.d/99-swap.conf
sysctl --system

Check with free -h.

Mühəndislərin əllə qurduğu server sifariş edin və ya bizə yazın — 24/7 onlaynıq. Dəstək →

Linux VPS

Bütün təlimatlar

Layihənizi işə salmağa hazırsınız?

Mühəndislərin əllə qurduğu server sifariş edin və ya bizə yazın — 24/7 onlaynıq.