Update Section_08/docker-compose.sh, Section_05/swap.sh
This commit is contained in:
8
Section_05/swap.sh
Normal file
8
Section_05/swap.sh
Normal 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
|
||||
Reference in New Issue
Block a user