ntpd가 실행되고 있지 않습니다

ntpd가 실행되고 있지 않습니다
  • 올바른 서버가 구성되었는지 확인했습니다./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

내 공개 사용 회전초 시스템에서 나는 다음을 얻습니다.

systemctl start ntp
Unit ntp.service could not be found.

ntp를 ntpd로 교체했는데 모든 것이 잘 작동합니다.

systemctl start ntpd
systemctl enabled ntpd

관련 정보