Archived
更新 PVE 系统调整
This commit is contained in:
+4
-6
@@ -43,9 +43,7 @@ Sun, 25 Jun 2023 12:12:12 +0800
|
||||
|
||||
Debian 系统常用 `systemd-timesyncd.service` 来同步时间,而 PVE 系统使用 `chrony.service` 来同步时间。
|
||||
|
||||
为了使用国内的 NTP 服务器,需要对 `chrony.service` 进行配置。
|
||||
|
||||
执行以下命令对 `chrony` 的配置文件进行修改。
|
||||
为了使用国内的 NTP 服务器,需要对 `chrony.service` 进行配置,执行以下命令。
|
||||
|
||||
```bash
|
||||
## 编辑 chrony 配置文件
|
||||
@@ -66,7 +64,7 @@ pool ntp.aliyun.com iburst
|
||||
|
||||
```
|
||||
|
||||
保存该配置文件后,需重启 `chrony` 服务,并再次检查系统 NTP 服务器地址。
|
||||
保存该配置文件后,需重启 `chrony.service` ,并再次检查系统 NTP 服务器地址。
|
||||
|
||||
```bash
|
||||
## 重启 chrony 服务
|
||||
@@ -258,7 +256,7 @@ $ dpkg-reconfigure -plow unattended-upgrades
|
||||
Creating config file /etc/apt/apt.conf.d/20auto-upgrades with new version
|
||||
```
|
||||
|
||||
进一步调整 apt 的 `20auto-upgrades` 配置文件。
|
||||
进一步调整 `20auto-upgrades` 配置文件。
|
||||
|
||||
```bash
|
||||
## 进入 apt 的配置目录
|
||||
@@ -282,7 +280,7 @@ APT::Periodic::CleanInterval "1";
|
||||
|
||||
```
|
||||
|
||||
进一步调整 apt 的 `50unattended-upgrades` 配置文件。
|
||||
进一步调整 `50unattended-upgrades` 配置文件。
|
||||
|
||||
```bash
|
||||
## 编辑 50unattended-upgrades 配置文件
|
||||
|
||||
Reference in New Issue
Block a user