Repository
https://github.com/spiritLHLS/addswap
addswap
Add swap space (virtual memory) to Linux servers on OpenVZ/KVM environments.
Install
Global:
bash
curl -L https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh1
CN mirror:
bash
curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh1
Notes
- Input
1024to create about1Gswap. - OpenVZ/LXC environments are usually restricted by host-side virtualization controls.
