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

需要登入才可留言!

類似的文章


Laravel linux

我的行動電腦,安裝Laravel 8在Sony xperia 5 II上

這是我的第一隻Android手機,試裝Laravel完全沒問題耶,基本上我裝了vim及mariadb。 執行sshd後,可以透過8022登入哦,完全是一台行動電腦了:p。 我使用的軟體是Termux...

linux

如何檢查apache載入並啟用了那些modules?

如何檢查apache載入並啟用了那些modules?

linux

舊版CentOS 6.2編譯git過程

本文使用的CentOS 6.2進行,進行重build curl及git過程。 主因是因為作業系統太舊,我直接由source build最新版本的git。