因为在公司的内网,所以不能用Ubuntu默认的服务器去更新时间。

只能改成从网关 10.182.202.2 上取时间

1) 如果没有安装ntp 的话,先安装

apt-get install ntp

2) 编辑 /etc/ntp.conf

server 10.182.208.2

3 )  执行下面的代码

sudo service ntp stop
sudo ntpd -gq
sudo service ntp start

 

参考:

https://askubuntu.com/questions/254826/how-to-force-a-clock-update-using-ntp

相关文章:

  • 2021-08-20
  • 2021-11-19
  • 2021-12-19
  • 2021-09-17
  • 2021-11-24
  • 2021-12-16
  • 2021-12-12
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2021-10-10
相关资源
相似解决方案