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

관련 정보