# dpkg -l ntpdate
要望=(U)不明/(I)インストール/(R)削除/(P)完全削除/(H)保持 | 状態=(N)無/(I)インストール済/(C)設定/(U)展開/(F)設定失敗/(H)半インストール/(W)トリガ待ち/(T)トリガ保留 |/ エラー?=(空欄)無/(R)要再インストール (状態,エラーの大文字=異常) ||/ 名前 バージョン アーキテクチャ 説明 +++-============-==============-=========-======================= ii ntpdate 1:4.2.6.p5+dfsg-7 amd64 client for setting system time from NTP servers |
# apt install ntpdate
# vim /etc/default/ntpsec-ntpdate
# NTPDATE_USE_NTP_CONF=yes NTPDATE_USE_NTP_CONF=no ... # NTPSERVERS="0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org" NTPSERVERS="ntp.hokudai.ac.jp" |
#!/bin/sh /usr/sbin/ntpdate-debian -s ntp.hokudai.ac.jp > /dev/null 2>&1 systemctl restart dovecot > /dev/null 2>&1 (dovecot の導入で詳しく説明) |
# chmod +x /etc/cron.daily/ntpdate
最終更新日:2025/05/18 (山本 峻大) | Copyright (C) 2000-2025 EPnetFaN |