Created
July 17, 2017 16:35
-
-
Save calimaborges/26444eab757ba5b2ef9ac6cbe5da418a to your computer and use it in GitHub Desktop.
Swap Memory Config Digital Ocean
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
# Configure swap memory | |
fallocate -l 4G /swapfile | |
chmod 600 /swapfile | |
mkswap /swapfile | |
echo "/swapfile none swap sw 0 0" >> /etc/fstab | |
shutdown -r now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment