Created
September 4, 2018 16:25
-
-
Save Eduard-gan/68f8769b5f6fbee5c51ca8dad24c88c3 to your computer and use it in GitHub Desktop.
Add swap to poor VPS
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
Without swap mysql docker container for example will just not start on 512MB of RAM. | |
dd if=/dev/zero of=/swapfile bs=1M count=1024 | |
mkswap /swapfile | |
swapon /swapfile | |
Add string to /etc/fstab: /swapfile swap swap defaults 0 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment