要检查Ubuntu上的ntpd服务状态,请按照以下步骤操作:
sudo systemctl status ntp
如果您看到“inactive (dead)”或“failed”,则表明ntpd服务未运行或出现问题。您可以尝试使用以下命令来启动ntpd服务:
sudo systemctl start ntp
若要确保ntpd服务在系统启动时自动运行,请使用以下命令:
sudo systemctl enable ntp
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:如何在Ubuntu上配置ntpd服务