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

舊版CentOS 6.2編譯git過程

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

linux

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

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

linux, python, colab

如何從我們的Server透過ssh連線到colab?

介紹我寫的一支bash,用來透過ssh連線到colab vm內。 一行指令,搞定colab OpenSSH Server。