Update Section_08/docker-compose.sh, Section_05/swap.sh

This commit is contained in:
Kishan Takoordyal
2023-05-21 12:33:40 +00:00
parent 72ea6c994f
commit bbef18c1da
2 changed files with 33 additions and 0 deletions

8
Section_05/swap.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
swapon --show