CentOS8系统同步时间
一、安装chrony
安装chrony
yum install -y chrony 启动 chrony systemctl start chronyd 设为系统自动启动 systemctl enable chronyd
二、编辑配置etc/chrony.conf
1 [root@zabbix ~]# cat /etc/chrony.conf 2 # Use public servers from the pool.ntp.org project. 3 # Please consider joining the pool (http://www.pool.ntp.org/join.html). 4 #pool 2.centos.pool.ntp.org iburst 5 server ntp.aliyun.com iburst 6 server cn.ntp.org.cn iburst
三、重新加载配置并测试
1 [root@zabbix ~]# systemctl restart chronyd.service 2 [root@zabbix ~]# chronyc sources -v 3 4 .-- Source mode '^' = server, '=' = peer, '#' = local clock. 5 / .- Source state '*' = current best, '+' = combined, '-' = not combined, 6 | / 'x' = may be in error, '~' = too variable, '?' = unusable. 7 || .- xxxx [ yyyy ] +/- zzzz 8 || Reachability register (octal) -. | xxxx = adjusted offset, 9 || Log2(Polling interval) --. | | yyyy = measured offset, 10 || \ | | zzzz = estimated error. 11 || | | \ 12 MS Name/IP address Stratum Poll Reach LastRx Last sample 13 =============================================================================== 14 ^* 203.107.6.88 2 6 7 1 -669us[ +144us] +/- 48ms 15 ^- 114.67.237.130 2 6 7 2 -1577us[ -764us] +/- 226ms
******************************我也想难过的时候到海边走走,可是我的城市没有海。******************************
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY