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

需要登入才可留言!

类似文章


php,linux

WebShell功能介绍及注意事项

突然想来介绍什么是WebShell就上网找了一个,他的功能已相当好了, 不过我还想要一些功能,於是就用了三个晚上的时间,替他进行了一些小小的优化。 如果,您还没听过WebShell,快来看看这个影片吧。 如果您喜爱我的优化版本,请给我个赞哦,谢谢啦。

linux,security

ssh-agent及ssh-add认证代理员

在ssh的核心包中的进程诸如,scp、ssh、ssh-add、ssh-agent、sshd及ssh-keygen 让我们来谈谈ssh-agent及ssh-add使用情境吧。 在开始前先来看看这些命令用途的简介:

linux

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

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