add swap check command before setup instructions
This commit is contained in:
@@ -58,7 +58,13 @@ cat /etc/os-release
|
|||||||
|
|
||||||
### Swap (recommended)
|
### Swap (recommended)
|
||||||
|
|
||||||
If your VPS has no swap, add a 2 GB swapfile to prevent OOM kills:
|
Check current memory and swap:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
free -h
|
||||||
|
```
|
||||||
|
|
||||||
|
If swap shows `0B`, add a 2 GB swapfile to prevent OOM kills:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo fallocate -l 2G /swapfile
|
sudo fallocate -l 2G /swapfile
|
||||||
|
|||||||
Reference in New Issue
Block a user