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,docker,wifi

用docker建立WPA2/EAP企業用Radius驗證伺服器,後端使用mysql資料庫

AP提供了WPA2/EAP功能,但不會用嗎? 本文介紹我如何透過docker的ubuntu:21.04 image,極速建立Radius伺服器, 與Wifi的WPA2/EAP等相關運用。

seo,linux

使用簡易的bash進行圖檔優化

用bash及Linux的convert指令優化圖檔

linux

無密碼詢問,產生ssh金鑰對

有時進行自動設定時,需要產生ssh的金鑰對。 命令列無密碼詢問,產生ssh金鑰對。