by Devin Yang

建立於: 6年前 ( 更新: 6年前 )

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

移除Ubuntu上舊版本用不到的Linux Kernel

這個頁面描述我如何移掉 ubuntu上佔空間的舊版本Linux Kernel。

linux

rsync如何自動允許ssh金鑰指紋

當我們第一次使用ssh進行主機連線時,會顯示一個主機金鑰的指紋確認。 有時進行一些自動化的排程使用rsync,或許遠端主機變更了,需要自動允許, 如何讓ssh自動允許指紋進行連線,不需使用互動模式手動去壓yes呢?

linux

舊版CentOS 6.2編譯git過程

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