Last active
April 15, 2021 11:33
-
-
Save dollarkillerx/18276a73e5277e15c50c9a725592561e to your computer and use it in GitHub Desktop.
Ubuntu添加虚拟内存
This file contains 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
```sh | |
sudo -i | |
cd / | |
mkdir swap | |
cd swap | |
dd if=/dev/zero of=swapfile bs=1024 count=8192000 | |
sudo mkswap swapfile | |
sudo swapon swapfile | |
vim /etc/fstab | |
/swap/swapfile swap swap defaults 0 0 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment