by Devin Yang

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

在新版的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, cli

如何用find命令,找7天内变动过的文件

如果我们变更过一些文件,如何透过命令行找出来呢?

linux

rsync回传的错误码

这里列出所有的rsync错误码,因此在调度中,我们可以了解失败的原因。

linux,system

检测系统中的selinux是否激活

检测系统中的selinux是否激活