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,system

檢測系統中的selinux是否啟用

檢測系統中的selinux是否啟用

cli,linux,macos

如何用find刪除建立時間為準的舊檔案

這功能很好用,但要很小心,先看再刪,弄錯目錄會死很慘 

linux,raspberry

樹莓派安裝VNC Server

檢單介紹如何在樹莓派上啟動VNC Server