- 积分
- 166
- 金钱
- 149
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 166
- 金钱
- 149
- HASS币
- 0
|
发表于 2021-7-19 22:35:16
|
显示全部楼层
如果使用hassos 也可以不用修改hosts . 使用 ssh [email protected] -p 22222 登录到机器. 怎么登录自行google.
1. 更改/etc/systemd/timesyncd.conf 文件, 更改为如下:
[Time]
NTP=ntp6.aliyun.com
FallbackNTP=0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org
2. 重启 timesync服务
systemctl restart systemd-timesyncd.service
3. 确认 时间更新
执行 timedatectl
得到如下结果, 应该是更新成功了:
Local time: Mon 2021-07-19 14:34:49 UTC
Universal time: Mon 2021-07-19 14:34:49 UTC
RTC time: n/a
Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
|
|