-
-
Save aristidesneto/da6462ce454a786e307cdc009021a143 to your computer and use it in GitHub Desktop.
Adicionar swap ao sistema
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
| # Cria uma partição (swapfile) na raiz do sistema e ativa em seguida | |
| fallocate -l 1G /swapfile | |
| chmod 600 /swapfile | |
| mkswap /swapfile | |
| swapon /swapfile | |
| # Editar o arquivo /etc/fstab e adicionar a linha abaixo | |
| /swapfile none swap sw 0 0 | |
| # Confirme se deu certo | |
| ls -lh /swapfile | |
| # Forçar a montagem da partição | |
| mount -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment