在Ubuntu中与NTP服务器同步时间

版权声明:转载时请注明来源。 https://blog.csdn.net/RBPicsdn/article/details/81535433

NTP默认的配置文件在/etc/ntp.conf
NTP使用UPD port 123

  • 安装NTP Server
sudo apt-get install -y ntp
  • 查看NTP服务
systemctl ntp status
  • 查看NTP服务器状态
ntpq -p

猜你喜欢

转载自blog.csdn.net/RBPicsdn/article/details/81535433