Add ubah-ukuran-swap.MD
This commit is contained in:
parent
a54b6e53e5
commit
48568c9c0a
|
|
@ -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
|
||||
```
|
||||
Loading…
Reference in New Issue