惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
罗磊的独立博客
量子位
Microsoft Azure Blog
Microsoft Azure Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
M
MIT News - Artificial intelligence
月光博客
月光博客
IT之家
IT之家
D
DataBreaches.Net
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
D
Docker
The GitHub Blog
The GitHub Blog
B
Blog
V
Visual Studio Blog
博客园 - Franky
N
Netflix TechBlog - Medium
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
博客园 - 聂微东
U
Unit 42

博客园 - centosboy

Thinkpad T490卡顿排查 xinference初探 diff的安装与使用 ubuntu docker运行大模型 vllm部署 zabbix监控mongodb /root/.dbshell无权限解决办法 开机启动后应用limit没有生效 关于运维工作的一点感悟 将CDLINUX装入U盘 Autossh打洞 hive分区表实践 hashlib模块 rm 防误删脚本 linux 通过inode删除文件 那些年踩过的坑 Openfire搭建聊天系统 zookeeper运维 centos ping添加丢包记录 Linux tee命令输出显示在屏幕和保存到日志文件中
htpdate代替ntpdate同步时间
centosboy · 2020-12-15 · via 博客园 - centosboy

在用ntpdate同步时间时,提示如下错误,我的服务器在机房托管,很可能机房将NTP流量屏蔽。
[root@localhost htpdate]# ntpdate ntp.neu6.edu.cn
3 Apr 20:13:31 ntpdate[19954]: no server suitable for synchronization found

解决办法,使用htpdate进行定时同步
安装:
git clone https://github.com/iridium77/htpdate

make&&make install

htpdate -t -s ntp.neu.edu.cn
-t:关闭时间检查,默认情况下,时间偏移量大于一年,本地时间无法修改,使用-t设置,任何时间戳都将被接受。
-s:立即设置时间。

缺点:时间误差可能在0.5s之内