Ubuntu/Debian 使用ntpdate同步网络时间

之前在一篇博客有提到过玩客云的armbian安装青龙面板

在玩客云上使用青龙面板:

  1. 拉取镜像
docker pull whyour/qinglong:2.10.13
  1. 创建容器
docker run -tid --name qinglong -p 5700:5700 --restart always
whyour/qinglong:2.10.13

然后就可以通过http://ip:5700访问面板了

后来发现用不了,之前在做节点的时候有看到过一个软件ntpdate

这个软件是用来同步网络时间用的,我猜青龙面板用不了是因为时间不同步,后来同步了时间就可以了

1.打开终端输入以下命令安装ntpdate工具。

sudo apt-get install ntpdate

2.再输入命令设置系统时间与网络时间同步。

sudo ntpdate cn.pool.ntp.org

3.最后输入命令将时间更新到硬件上即可。

sudo hwclock --systohc

玩客云在最后一步会报错不过应该不影响

提示

No usable clock interface found.

有解决方法,我懒得搞,放个链接

PCF8523 RTC: hwclock: Cannot access the Hardware Clock via any known method. · Issue #2115 · raspberrypi/linux (github.com)

标签: ntpdate, ubuntu, debian

添加新评论