更新文案描述

This commit is contained in:
CallMeR
2026-08-10 11:39:07 +08:00
parent 966660a77f
commit f8cc6a7689
12 changed files with 85 additions and 52 deletions
+29 -19
View File
@@ -24,6 +24,20 @@ Press <enter> to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/bin/nvim to provide /usr/bin/editor (editor) in manual mode
```
若需完全禁用 `neovim` 鼠标功能;即关闭所有鼠标交互,右键行为完全交给终端 / 控制台处理,需执行以下命令。
```bash
## 创建 nvim 配置目录
$ mkdir -p /etc/xdg/nvim
## 配置 nvim 鼠标交互行为脚本
$ tee /etc/xdg/nvim/sysinit.vim << 'EOF'
set mouse=
EOF
```
## 1.系统时区
如果在安装 PVE 系统时选错了时区,导致系统时间和北京时间不一致,可以执行以下命令修正。
@@ -210,15 +224,13 @@ WantedBy=multi-user.target
$ systemctl daemon-reload
```
执行以下命令让 `cpupower` 服务开机自启
执行以下命令让 `cpupower` 服务立即启动并置为开机自启状态
```bash
## 设置 cpupower 服务开机自启
$ systemctl enable cpupower.service
$ systemctl enable --now cpupower.service
```
修改完成后,需重启 PVE 服务器,并再次查看 CPU 调度器,检验配置文件是否生效。
这里提供两个额外命令,方便实时查看 CPU 当前频率和温度状况。
```bash
@@ -248,7 +260,7 @@ $ crontab -e
```bash
## 定时任务配置项
30 2 1,16 * * /usr/sbin/reboot
30 2 1,16 * * /usr/sbin/shutdown --reboot now
```
@@ -258,7 +270,7 @@ $ crontab -e
配置系统自动更新之前,需检查系统当前定时器状态。
后续将手动调整该定时器的时间,使其每 `5` 天的 `01:30` 进行触发。
后续将手动调整该定时器的时间,使其每 `10` 天的 `01:30` 进行触发。
```bash
## 检查系统定时器
@@ -267,12 +279,12 @@ $ systemctl status apt-daily-upgrade.timer
#### 系统定时器示例输出
● apt-daily-upgrade.timer - Daily apt upgrade and clean activities
Loaded: loaded (/usr/lib/systemd/system/apt-daily-upgrade.timer; enabled; preset: enabled)
Active: active (waiting) since Wed 2025-08-27 13:41:10 CST; 1h 37min ago
Invocation: 26ebb62a4f6545998522fff8c4104b3e
Trigger: Thu 2025-08-28 06:14:37 CST; 14h left
Active: active (waiting) since Mon 2026-08-10 09:51:05 CST; 27min ago
Invocation: edb5962fda4c4a8395cb2c04c736db45
Trigger: Tue 2026-08-11 06:21:38 CST; 20h left
Triggers: ● apt-daily-upgrade.service
Aug 27 13:41:10 node01 systemd[1]: Started apt-daily-upgrade.timer - Daily apt upgrade and clean activities.
Aug 10 09:51:05 node01 systemd[1]: Started apt-daily-upgrade.timer - Daily apt upgrade and clean activities.
```
### 4.2.配置更新策略
@@ -289,12 +301,9 @@ $ dpkg-reconfigure -plow unattended-upgrades
<Yes>
```
进一步调整 `20auto-upgrades` 配置文件。
开始调整 `20auto-upgrades` 配置文件。
```bash
## 进入 apt 的配置目录
$ cd /etc/apt/apt.conf.d
## 编辑 20auto-upgrades 配置文件
$ editor /etc/apt/apt.conf.d/20auto-upgrades
```
@@ -408,13 +417,14 @@ $ systemctl status apt-daily-upgrade.timer
Loaded: loaded (/usr/lib/systemd/system/apt-daily-upgrade.timer; enabled; preset: enabled)
Drop-In: /etc/systemd/system/apt-daily-upgrade.timer.d
└─override.conf
Active: active (waiting) since Wed 2025-08-27 15:23:29 CST; 8s ago
Invocation: e38354f06d284894b084a52e1f19af73
Trigger: Thu 2025-08-28 01:30:00 CST; 10h left
Active: active (waiting) since Mon 2026-08-10 10:35:09 CST; 5s ago
Invocation: e73c9dd167cc4814836a1da4dab015db
Trigger: Tue 2026-08-11 01:30:00 CST; 14h left
Triggers: ● apt-daily-upgrade.service
Aug 27 15:23:29 node01 systemd[1]: Stopping apt-daily-upgrade.timer - Daily apt upgrade and clean activities...
Aug 27 15:23:29 node01 systemd[1]: Started apt-daily-upgrade.timer - Daily apt upgrade and clean activities.
Aug 10 10:35:09 node01 systemd[1]: Stopping apt-daily-upgrade.timer - Daily apt upgrade and clean activities...
Aug 10 10:35:09 node01 systemd[1]: Stopped apt-daily-upgrade.timer - Daily apt upgrade and clean activities.
Aug 10 10:35:09 node01 systemd[1]: Started apt-daily-upgrade.timer - Daily apt upgrade and clean activities.
```
## 5.硬件直通