如题,
目前使用ntpdate来进行网络自动对时,
然而,这个时间是世界时,
我需要的是北京时间。
谁看看,
如何使用网络时间的北京时间?
如何使用网络时间的北京时间?
-
- 帖子: 197
- 注册时间: 2015-12-23 16:20
- 系统: ubuntu 16.04
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: 如何使用网络时间的北京时间?
Ubuntu 15.04 及以上直接用 timedatectl set-ntp true 使用 systemd-timesyncd.service 自动对时。
NTP 本来无所谓时区,都是世界时。
当 /etc/localtime 被正确地链接到您所在的时区时,ntpdate 应该会自动将 NTP 服务器提供的 UTC 时间转换为本地时间。
NTP 本来无所谓时区,都是世界时。
当 /etc/localtime 被正确地链接到您所在的时区时,ntpdate 应该会自动将 NTP 服务器提供的 UTC 时间转换为本地时间。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户