NTP - 校正 Linux 時間
NTP 可以讓您與遠端的時間伺服器同步,以校正 Linux 系統的時間。
安裝 NTP 模組
使用 APT 安裝 NTP 套件:
apt-get install ntp
時間同步
執行下列指令即讓系統時間與 time.stdtime.gov.tw 的時間同步:
ntpdate -s time.stdtime.gov.tw hwclock --systohc
每天對時
#! /bin/bash ntpdate -s time.stdtime.gov.tw hwclock --systohc
chmod 755 /etc/cron.daily/ntpdate.sh
您可能會對以下這些文章感興趣
2003
5
6月
- Posted by citypig at 01:29 pm (581 views)
- Permalink for this entry
- Filed under: linux, ntp, redhat7
- RSS comments feed of this entry
- TrackBack URI










沒有任何留言
發表您的評論