This commit is contained in:
spiritlhl
2023-08-27 13:29:17 +00:00
parent 42b350ec82
commit 3e9da450ad
4 changed files with 92 additions and 32 deletions

View File

@@ -177,7 +177,9 @@ function getCaseSidebarZhCN() {
{ text: '2. VPS融合怪服务器测评脚本', link: '/case/case2.html' },
{ text: '3. 自动更新测试服务器节点列表的网络基准测试脚本', link: '/case/case3.html' },
{ text: '4. 甲骨文服务器保活脚本', link: '/case/case4.html' },
{ text: '5. convoy面板安装脚本', link: '/case/case5.html' }
{ text: '5. 为linux服务器增加swap分区(虚拟内存)', link: '/case/case5.html' },
{ text: '6. 为linux服务器启用zram(压缩内存)', link: '/case/case6.html' },
{ text: '7. convoy面板安装脚本', link: '/case/case7.html' }
]
}
]

View File

@@ -1,31 +1,37 @@
---
outline: deep
---
# 仓库
https://github.com/spiritLHLS/convoypanel-scripts
# convoypanel-scripts
### One-click installation of convoy panel
Prerequisites for installation:
- PVE is installed
- System is debian 11
- CPU at least 2 cores, hard disk at least 20G, memory at least 4G (memory covers swap)
**I don't guarantee that this script is error-free, it's just for my own amusement.**
```
curl -L https://github.com/spiritLHLS/convoypanel-scripts/raw/main/installconvoy.sh -o installconvoy.sh && chmod +x installconvoy.sh && bash installconvoy.sh
```
### Thanks
Base on https://github.com/spiritLHLS/pve
Base on https://docs.convoypanel.com/guide/deployment/#installation
Base on https://github.com/ConvoyPanel/panel
---
outline: deep
---
# 仓库
https://github.com/spiritLHLS/addswap
# addswap
为openvz、kvm虚拟化的linux服务器增加swap分区(虚拟内存)
```bash
curl -L https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh
```
已增加openvz架构重启swap自动添加的
openvz这个添加=掩耳盗铃实际受到虚拟化限制应该是无法添加的只能由虚拟化的宿主机控制同理LXC虚拟化的也只能由宿主机控制都无法自主添加虚拟内存SWAP
因此,该项目不再更新,除非另有需求
**单位换算:输入 1024 产生 1G SWAP内存**
# 致谢
kvm分区原版脚本源自 https://www.moerats.com/
```bash
curl -L https://www.moerats.com/usr/shell/swap.sh -o swap.sh && chmod +x swap.sh && bash swap.sh
```
openVZ分区原版脚本源自
http://linux-problem-solver.blogspot.com/2013/08/create-fake-swap-in-openvz-vps-if-you-get-swapon-failed-operation-not-permitted-error.html
感谢 [@fscarmen](https://github.com/fscarmen) 提供优化建议

21
docs/case/case6.md Normal file
View File

@@ -0,0 +1,21 @@
---
outline: deep
---
# 仓库
https://github.com/spiritLHLS/addzram
# addzram
为kvm、openvz、lxc虚拟化的linux服务器启用zram(压缩内存)
```bash
curl -L https://raw.githubusercontent.com/spiritLHLS/addzram/main/addzram.sh -o addzram.sh && chmod +x addzram.sh && bash addzram.sh
```
**单位换算:输入 1024 产生 1G 的 zram 设备压缩内存zram 设备大小不能大于实际内存大小**
# 致谢
感谢 [@Ella-Alinda](https://github.com/Ella-Alinda) 提供优化建议

31
docs/case/case7.md Normal file
View File

@@ -0,0 +1,31 @@
---
outline: deep
---
# 仓库
https://github.com/spiritLHLS/convoypanel-scripts
# convoypanel-scripts
### One-click installation of convoy panel
Prerequisites for installation:
- PVE is installed
- System is debian 11
- CPU at least 2 cores, hard disk at least 20G, memory at least 4G (memory covers swap)
**I don't guarantee that this script is error-free, it's just for my own amusement.**
```
curl -L https://github.com/spiritLHLS/convoypanel-scripts/raw/main/installconvoy.sh -o installconvoy.sh && chmod +x installconvoy.sh && bash installconvoy.sh
```
### Thanks
Base on https://github.com/spiritLHLS/pve
Base on https://docs.convoypanel.com/guide/deployment/#installation
Base on https://github.com/ConvoyPanel/panel