Created
July 15, 2025 12:52
-
-
Save Feiron/18589ee0583ab4def858bf777a42839f to your computer and use it in GitHub Desktop.
[Swap] Создание свап файла
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo dd if=/dev/zero of=/swapfile count=4096 bs=1MiB | |
| chmod 600 /swapfile | |
| mkswap /swapfile | |
| swapon /swapfile | |
| (проверить swapon -s) | |
| /etc/fstab | |
| /swapfile swap swap sw 0 0 | |
| (проверить mount -a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment