From 197bc34e12c163a71433e7137873d887ac945644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E5=88=80=E7=8B=90=E7=8B=B8?= <9463297+callmer@user.noreply.gitee.com> Date: Fri, 28 Oct 2022 04:50:01 +0000 Subject: [PATCH] =?UTF-8?q?update=202.PVE=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E9=85=8D=E7=BD=AE.md.=20=E6=9B=B4=E6=96=B0=EF=BC=9A=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E7=B3=BB=E7=BB=9F=E8=87=AA=E5=8A=A8=E5=8D=87=E7=BA=A7?= =?UTF-8?q?CPU=E5=BE=AE=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 秋刀狐狸 <9463297+callmer@user.noreply.gitee.com> --- 2.PVE初始化配置.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/2.PVE初始化配置.md b/2.PVE初始化配置.md index bc3b7ad..7473614 100644 --- a/2.PVE初始化配置.md +++ b/2.PVE初始化配置.md @@ -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` 为两个服务,后续会对其进行配置。