Add ubah-ukuran-swap.MD

This commit is contained in:
mbahsomo 2026-05-08 15:08:38 +00:00
parent a54b6e53e5
commit 48568c9c0a
1 changed files with 19 additions and 0 deletions

19
ubah-ukuran-swap.MD Normal file
View File

@ -0,0 +1,19 @@
cara menubah ukuran swap
```
sudo swapoff -a
sudo rm -f /swapfile
sudo fallocate -l 8G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
```
tambahkan pada tstab
```
sudo vim /etc/fstab
/swapfile none swaap sw 0 0
```
check swap
```
free -h
```