跳至主內容區

XOOPS輕鬆架

:::

主內容區域

選擇後會自動跳轉頁面

13. 自動時間校正

  1. 使用 APT 安裝 NTP 套件:
    apt-get install ntp ntpdate

     

  2. 執行下列指令即讓系統時間與 time.stdtime.gov.tw 的時間同步,並 修改BIOS時間 :
    ntpdate -s time.stdtime.gov.tw
    hwclock --systohc
  3. 加入自動排程
    crontab -e
    

     

  4. 每天5:10自動校時
    10 5 * * * root /usr/sbin/ntpdate -s time.stdtime.gov.tw

    */30 * * * * (/usr/sbin/ntpdate -s time.stdtime.gov.tw;/sbin/hwclock -w) > /dev/null 2>&1

     

選擇後會自動跳轉頁面

:::

左邊區域內容

書籍目錄

展開 | 闔起

快速登入


右邊區域內容

請掃此 QR Code 可連至此頁面

計數器

今天: 721721721
昨天: 2509250925092509
總計: 9465088946508894650889465088946508894650889465088

頁尾區域