更新示例输出

This commit is contained in:
CallMeR
2025-08-12 17:15:54 +08:00
parent b0ede429fc
commit 53221483fd
+12 -11
View File
@@ -272,21 +272,22 @@ $ sudo systemctl status systemd-timesyncd.service
```bash ```bash
#### NTP 服务示例输出 #### NTP 服务示例输出
● systemd-timesyncd.service - Network Time Synchronization ● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; preset: enabled) Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; enabled; preset: enabled)
Active: active (running) since Mon 2024-10-07 18:06:29 CST; 9s ago Active: active (running) since Tue 2025-08-12 17:09:38 CST; 8s ago
Invocation: ffb0d20e6a6649efb433fa290dc3286b
Docs: man:systemd-timesyncd.service(8) Docs: man:systemd-timesyncd.service(8)
Main PID: 1706 (systemd-timesyn) Main PID: 2820 (systemd-timesyn)
Status: "Contacted time server 203.107.6.88:123 (ntp.aliyun.com)." Status: "Contacted time server 203.107.6.88:123 (ntp.aliyun.com)."
Tasks: 2 (limit: 2315) Tasks: 2 (limit: 4556)
Memory: 1.4M Memory: 1.6M (peak: 2.6M)
CPU: 113ms CPU: 47ms
CGroup: /system.slice/systemd-timesyncd.service CGroup: /system.slice/systemd-timesyncd.service
└─1706 /lib/systemd/systemd-timesyncd └─2820 /usr/lib/systemd/systemd-timesyncd
Oct 07 18:06:29 DNS01 systemd[1]: Starting systemd-timesyncd.service - Network Time Synchronization... Aug 12 17:09:38 DNST01 systemd[1]: Starting systemd-timesyncd.service - Network Time Synchronization...
Oct 07 18:06:29 DNS01 systemd[1]: Started systemd-timesyncd.service - Network Time Synchronization. Aug 12 17:09:38 DNST01 systemd[1]: Started systemd-timesyncd.service - Network Time Synchronization.
Oct 07 18:06:29 DNS01 systemd-timesyncd[1706]: Contacted time server 203.107.6.88:123 (ntp.aliyun.com). Aug 12 17:09:38 DNST01 systemd-timesyncd[2820]: Contacted time server 203.107.6.88:123 (ntp.aliyun.com).
Oct 07 18:06:29 DNS01 systemd-timesyncd[1706]: Initial clock synchronization to Mon 2024-10-07 18:06:29.499548 CST. Aug 12 17:09:38 DNST01 systemd-timesyncd[2820]: Initial clock synchronization to Tue 2025-08-12 17:09:38.425596 CST.
``` ```
### 1.8.配置自动更新 ### 1.8.配置自动更新