centos7的时间同步机制:chrony使用


配置时间同步方法如下:

1、安装chrony时间同步服务(系统默认安装)

#yum install chrony

可以先查询一下是否有安装:

[root@localhost etc]# rpm -qa |grep chrony

chrony-1.29.1-1.el7.x86_64

2、配置时间同步服务:

启动时间同步服务:# systemctl start chronyd.service

配置时间同步源:# vi /etc/chrony.conf

# Please consider joining the pool (http://www.pool.ntp.org/join.html).

server 0.rhel.pool.ntp.org iburst

server 1.rhel.pool.ntp.org iburst

server  10.100.2.5              iburst

重启时间同步服务:# systemctl restart chronyd.service

查看时间同步状态:# systemctl status chronyd.service

查看时间同步源:# chronyc sources -v

 

来源:http://blog.51cto.com/lorysun/1606530


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM