2025-01-02 21:03:29
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
fallocate -l 2G /swap2file
|
||||||
|
chmod 600 /swap2file
|
||||||
|
mkswap /swap2file
|
||||||
|
swapon /swap2file
|
||||||
|
echo "/swap2file swap swap defaults 0 0" | tee -a /etc/fstab
|
||||||
|
|
||||||
|
mount -a
|
||||||
|
systemctl daemon-reload
|
||||||
|
|
||||||
Executable
+11
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
fallocate -l 4G /swap4file
|
||||||
|
chmod 600 /swap4file
|
||||||
|
mkswap /swap4file
|
||||||
|
swapon /swap4file
|
||||||
|
echo "/swap4file swap swap defaults 0 0" | tee -a /etc/fstab
|
||||||
|
|
||||||
|
mount -a
|
||||||
|
systemctl daemon-reload
|
||||||
|
|
||||||
Executable
+11
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
fallocate -l 8G /swap8file
|
||||||
|
chmod 600 /swap8file
|
||||||
|
mkswap /swap8file
|
||||||
|
swapon /swap8file
|
||||||
|
echo "/swap8file swap swap defaults 0 0" | tee -a /etc/fstab
|
||||||
|
|
||||||
|
mount -a
|
||||||
|
systemctl daemon-reload
|
||||||
|
|
||||||
Reference in New Issue
Block a user