by Devin Yang

建立于: 8年前 ( 更新: 8年前 )

在新版的RHEL 7/CentOS 7或Fedora上,我们可以透过timedatectl来查看状态及进行调整。

显示目前设置(Show current settings)

timedatectl


要列出timezone可用命令(List available time zones, one per line.)
timedatectl list-timezones|grep Asia

  找到timezone后,设置方式如下,例如:
 timedatectl set-timezone Asia/Taipei

启动网络时间同步(Enable network time synchronization)
timedatectl set-ntp true

Tags: linux

Devin Yang

文章内容无法一一说明,如果您有什么不了解处,欢印提问哦:)

No Comment

Post your comment

需要登入才可留言!

类似文章


linux

rsync如何自动允许ssh密钥指纹

当我们第一次使用ssh进行主机连线时,会显示一个主机密钥的指纹确认。 有时进行一些自动化的调度使用rsync,或许远程主机变更了,需要自动允许, 如何让ssh自动允许指纹进行连线,不需使用交互模式手动去压yes呢?

Laravel linux

我的移动电脑,安装Laravel 8在Sony xperia 5 II上

这是我的第一只Android手机,试装Laravel完全没问题耶,基本上我装了vim及mariadb。 运行sshd后,可以透过8022登录哦,完全是一台移动电脑了:p。 我使用的软体是Termux...

linux

如何检查apache加载并激活了那些modules?

如何检查apache加载并激活了那些modules?