
- 正しいサーバーが設定されていることを確認しました
/etc/ntp.conf
- そのサーバーに ping を実行できます。
間違いなくntpパッケージがある
/home/admin# dpkg -s ntp Package: ntp Status: install ok installed
しかしデーモンは実行されていない
/home/admin# ps wax | grep ntp 21959 pts/0 S+ 0:00 grep ntp
ステータスチェック
/home/admin# ntpstat Unable to talk to NTP daemon. Is it running?
再起動しようとするとこれが表示されます
/home/admin# systemctl start ntpd Failed to start ntpd.service: Unit ntpd.service failed to load: No such file or directory.
次に何を試すべきでしょうか?
答え1
ステータスを確認するには、ntp
以下を使用する必要があります。
systemctl status ntp
を変更して、次/etc/ntp.conf
の方法でサービスを再起動する必要があります。
systemctl restart ntp
レポートntpstat
ではUnable to talk to NTP daemon. Is it running?
、次の方法で簡単にサービスを開始できますntp
。
systemctl start ntp
起動時にサービスを開始するには:
systemctl enable ntp
答え2
私のopensuse tumbleweedシステムでは、
systemctl start ntp
Unit ntp.service could not be found.
ntp を ntpd に置き換えたら、すべて動作しました。
systemctl start ntpd
systemctl enabled ntpd