服务器时间同步
一、安装ntpddate
#centos,redhat系列
yum install ntpdate
#debian,ubuntu系列
apt install ntpdate
二、在服务器都能联网情况下时间同步
#手动同步阿里云时间服务器时间
ntpdate ntp.aliyun.com
阿里云时间同步地址
ntp1.aliyun.com
ntp2.aliyun.com
ntp3.aliyun.com
ntp4.aliyun.com
ntp5.aliyun.com
ntp6.aliyun.com
ntp7.aliyun.com
三、查看时间并互相同步
#查看系统时间
date
#查看硬件时间
clock
系统时间同步到硬件时间
hwclock -w
硬件时间同步到系统时间
hwclock -s
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
2023-09-06 mysql 执行sql 文件