update 2.PVE初始化配置.md.

更新:支持系统自动升级CPU微码

Signed-off-by: 秋刀狐狸 <9463297+callmer@user.noreply.gitee.com>
This commit is contained in:
秋刀狐狸
2022-10-28 04:50:01 +00:00
committed by Gitee
parent 022a7dd510
commit 197bc34e12
+9 -4
View File
@@ -42,17 +42,19 @@ sed -i 's|^deb http://security.debian.org|deb https://mirrors.ustc.edu.cn/debian
cat /etc/apt/sources.list
```
如果输出结果中有 USTC 的镜像地址,则表示命令已经正确执行
如果输出结果中有 USTC 的镜像地址,则表示命令已经正确执行
如果希望能更新 CPU 的 `microcode` ,则需要手动添加镜像的 `non-free` 参数,完整系统源示例如下:
```bash
## 输出内容参考:
deb https://mirrors.ustc.edu.cn/debian bullseye main contrib
deb https://mirrors.ustc.edu.cn/debian bullseye main contrib non-free
deb https://mirrors.ustc.edu.cn/debian bullseye-updates main contrib
deb https://mirrors.ustc.edu.cn/debian bullseye-updates main contrib non-free
# security updates
deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib
deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib non-free
```
此处我放出 Debian Bullseye 的完整镜像源以供参考, **非常不建议** 将 PVE 的系统源替换成完整的 Debian 源,以避免出现问题。
@@ -173,6 +175,9 @@ apt install iperf iperf3 iftop net-tools ethtool
## 安装CPU调度调整工具
apt install cpufrequtils
## 根据CPU厂商安装CPU微码工具
apt install intel-microcode (amd64-microcode)
```
其中 `fail2ban``unattended-upgrades` 为两个服务,后续会对其进行配置。