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

推荐订阅源

博客园 - 叶小钗
V
Visual Studio Blog
雷峰网
雷峰网
J
Java Code Geeks
博客园 - 三生石上(FineUI控件)
人人都是产品经理
人人都是产品经理
MyScale Blog
MyScale Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
C
Check Point Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
D
Docker
IT之家
IT之家
博客园 - 聂微东
腾讯CDC
U
Unit 42
Microsoft Security Blog
Microsoft Security Blog
The Cloudflare Blog

博客园 - 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之内