kedarui

一台VPS的时间出错,使用常规手段修改均失败。提示hwclock failed :

ntpdate stdtime.sinica.edu.tw 

如果你的 VPS 提示没有 ntpdate 这个命令,可以通过下面的命令安装:

centos 系统

yum -y install ntpdate ntp 

Debian 系统

apt-get install -y ntpdate ntp 

Ubuntu 系统

sudo apt-get install -y ntpdate ntp 

记得最后再执行一次 ln -sf /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime

分类:

技术点:

相关文章:

  • 2021-11-17
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2021-07-30
  • 2021-11-13
  • 2021-04-08
猜你喜欢
  • 2021-08-02
  • 2022-12-23
  • 2021-12-21
  • 2021-10-17
  • 2022-01-08
  • 2022-12-23
  • 2021-06-23
相关资源
相似解决方案