Created
February 24, 2023 01:48
-
-
Save ssrlive/2f9150feaa37dfbcd636b6ee3acaea55 to your computer and use it in GitHub Desktop.
extern memory script
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
| #!/bin/bash | |
| sudo dd if=/dev/zero of=/opt/swap bs=1024 count=2048000 | |
| sudo chmod 600 /opt/swap # ×¢Òâ¸ü¸Ä swap ÎļþµÄȨÏÞ | |
| sudo mkswap /opt/swap | |
| sudo swapon /opt/swap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment