× Installation and guides about a great free, plesk and cpanel alternative project

Enable Swap File For Your CWP7 Installation

Περισσότερα
5 Ημέρες 16 Ώρες πριν - 5 Ημέρες 16 Ώρες πριν #326 από infogate
Enable Swap File For Your CWP7 Installation δημιουργήθηκε από infogate
Got it ? You’re running AlmaLinux + CWP7pro (CentOS Web Panel Pro).
Here’s a clear, step-by-step guide to enable swap memory on your VPS:1. Check if swap already exists
swapon --show
free -h
  • If no swap is listed, proceed below.
2. Create a swap file? Example: 2 GB swap (adjust
2G
to your needs)
sudo fallocate -l 2G /swapfile
If
fallocate
is not supported, use:
sudo dd if=/dev/zero of=/swapfile bs=1M count=2048
3. Secure the swap file
sudo chmod 600 /swapfile
4. Mark it as swap
sudo mkswap /swapfile
5. Enable swap
sudo swapon /swapfile
Check again:
swapon --show
free -h
6. Make swap permanentAdd the following line to
/etc/fstab
:
sudo nano /etc/fstab
Scroll to the bottom of the file and add this line on a new line:
/swapfile swap swap defaults 0 0
7. (Optional) Adjust swap tendencyThis controls how aggressively Linux uses swap. Lower = use swap less.
sudo sysctl vm.swappiness=10
Make it permanent:
echo "vm.swappiness=10" | sudo tee -a /etc/sysctl.conf
✅ Done! Now your AlmaLinux VPS with CWP7pro has swap enabled. 


The best possible way to start your online marketing : fspirits.com/go/leadsleap-home
Explode Your Web Site Traffice: fspirits.com/go/sparktraffic
Start your affiliate journey here: fspirits.com/go/olsp-academy
Best Solution To Create Videos: fspirits.com/go/create-studio-pro
Best Solution To Create Graphics: fspirits.com/go/clickdesigns
Smart Chat Automation: fspirits.com/go/chatterpal
Multi-Purpose Video Maker: fspirits.com/go/avatar-builder
Multi-Purpose Video Creator: fspirits.com/go/video-creator
AI Human Spokesperson Videos: fspirits.com/go/humanpal

Last edit: 5 Ημέρες 16 Ώρες πριν by infogate.

Παρακαλούμε Σύνδεση ή Δημιουργία λογαριασμού για να συμμετάσχετε στη συζήτηση.

Χρόνος δημιουργίας σελίδας: 0.082 δευτερόλεπτα
Powered by Kunena Φόρουμ