今天同步笔记的时候,突然发现报错,打开日志瞄了一眼;报:
2024-02-21 02:26:09: App: Starting server v2.10.6 (prod) on port 22300 and PID 7...
Error: Cannot retrieve the network time from pool.ntp.org:123: getaddrinfo EAI_AGAIN pool.ntp.org
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
errno: -3001,
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'pool.ntp.org'
}
大概意思就是连不上NTP服务器呗
我服务器PING 了一下确实是

然后想到了解决方案,修改HOSTS~
我用ping工具大概看了一下 CDN节点 , 确实有些是噶蛋的~
发现有台腾讯云的机器 正好我这台也是腾讯云

打开hosts文件 修改 vi /etc/hosts
119.28.206.193 pool.ntp.org
重启网络服务
sudo systemctl restart network
然后就能连上NTP服务器了~

重启docker
sudo systemctl restart docker
搞定~ 告辞~
评论 (0)