mirror of https://github.com/pikami/sysadmin.git
Create swap.sh
This commit is contained in:
parent
33030b030b
commit
9ba570b2cf
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
fallocate -l 2G /swapfile
|
||||||
|
chmod 600 /swapfile
|
||||||
|
mkswap /swapfile
|
||||||
|
swapon /swapfile
|
Loading…
Reference in New Issue