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

ubuntu找不到add-apt-repository指令

ubuntu找不到add-apt-repository指令

linux

haproxy 1.8.9編譯記錄

記錄在Ubuntu下編譯haproxy 1.8.9過程。

linux

關於setfacl

我想現在的Linux大多支援Access Control List (ACL)。在檔案系統ACL啟用的情況下, 我們可以設定額外的權限給不同的使用者或群組。 這讓我們更加自由的來設定不同使用者的檔案系統權限。 直接來看命令。