Skip to content

Commit acdcc2b

Browse files
authored
fix: 修复安装
1 parent 94fa13c commit acdcc2b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/case/case7.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,18 @@ https://github.com/spiritLHLS/addzram
1010

1111
为linux服务器启用zram(压缩内存)
1212

13-
```bash
13+
国际
14+
15+
```shell
1416
curl -L https://raw.githubusercontent.com/spiritLHLS/addzram/main/addzram.sh -o addzram.sh && chmod +x addzram.sh && bash addzram.sh
1517
```
1618

19+
国内
20+
21+
```shell
22+
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
23+
```
24+
1725
类同前面的addswap项目
1826

1927
同样是给机器优化内存占用的东西,只不过zram是压缩内存占用,swap是附加虚拟内存增加内存空间,二者都会占用CPU资源,zram在CPU性能冗余的机器上使用更优

0 commit comments

Comments
 (0)