mirror of
https://github.com/pikami/sysadmin.git
synced 2024-11-25 13:15:45 +00:00
Create swap.sh
This commit is contained in:
parent
33030b030b
commit
9ba570b2cf
5
performance/swap.sh
Normal file
5
performance/swap.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
fallocate -l 2G /swapfile
|
||||||
|
chmod 600 /swapfile
|
||||||
|
mkswap /swapfile
|
||||||
|
swapon /swapfile
|
Loading…
Reference in New Issue
Block a user