AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-986377

frankfalse's questions

Martin Hope
frankfalse
Asked: 2022-10-01 07:25:53 +0800 CST

为什么命令 timedatectl list-timezones 的输出只有 UTC?

  • 0

在我的 Yocto 发行版中安装了systemd-timesyncd服务和程序timedatectl。我在文件中配置了一个 UTC NTP 服务器/etc/systemd/timesyncd.conf。该systemd-timesyncd服务正常工作并与 NTP 服务器同步日期和时间,因此我的系统时间与世界时 (UTC) 同步。

我需要设置我的时区,我知道我可以使用命令timedatectl(这里有 timedatectl 命令的手册页)。特别是要执行的命令是:
timedatectl set-timezone <timezone>
但是当我执行时:
timedatectl list-timezones要获取所有可用时区的列表,命令的输出是:

> timedatectl list-timezones
UTC

我没有找到任何文件/usr/share/zoneinfo或/usr/zoneinfo.

我想我想念在我的发行版中安装一些东西,但我不知道是什么..

谢谢

timezone
  • 1 个回答
  • 40 Views
Martin Hope
frankfalse
Asked: 2022-09-30 05:12:59 +0800 CST

systemd-timesyncd 的默认 NTP 服务器是什么?

  • -1

在我的 yocto 发行版中启用了该服务systemd-timesyncd.service。其配置文件(timesyncd.conf)如下:

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See timesyncd.conf(5) for details.

[Time]
#NTP=
#FallbackNTP=time1.google.com time2.google.com time3.google.com time4.google.com
#RootDistanceMaxSec=5
#PollIntervalMinSec=32
#PollIntervalMaxSec=2048

如您所见,NTP未设置配置文件的选项。尽管如此,服务设置了系统日期,并且通过一些登录journalctl,我看到 NTP 服务器可能是time1.google.com.

我的问题是:NTP 服务器在哪里设置systemd-timesyncd?

谢谢

systemd-timesyncd
  • 1 个回答
  • 46 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve