mirror of
https://github.com/oneclickvirt/oneclickvirt.github.io.git
synced 2026-06-01 08:11:32 +08:00
fix: 修复安装
This commit is contained in:
@@ -10,10 +10,18 @@ https://github.com/spiritLHLS/addzram
|
||||
|
||||
为linux服务器启用zram(压缩内存)
|
||||
|
||||
```bash
|
||||
国际
|
||||
|
||||
```shell
|
||||
curl -L https://raw.githubusercontent.com/spiritLHLS/addzram/main/addzram.sh -o addzram.sh && chmod +x addzram.sh && bash addzram.sh
|
||||
```
|
||||
|
||||
国内
|
||||
|
||||
```shell
|
||||
curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/spiritLHLS/addzram/main/addzram.sh -o addzram.sh && chmod +x addzram.sh && bash addzram.sh
|
||||
```
|
||||
|
||||
类同前面的addswap项目
|
||||
|
||||
同样是给机器优化内存占用的东西,只不过zram是压缩内存占用,swap是附加虚拟内存增加内存空间,二者都会占用CPU资源,zram在CPU性能冗余的机器上使用更优
|
||||
|
||||
Reference in New Issue
Block a user