Centos 7 时间同步设置

admin发布

centos时间同步:

1.查询是否安装chrony(centos 7.4以上自带)

rpm -qa |grep chrony

2、安装chrony,

yum install chrony -y

3、修改。conf 文件

vi /etc/chrony.conf

#server 0.rhel.pool.ntp.org iburst          —-将原配置服务器注释掉

#server 1.rhel.pool.ntp.org iburst

server  10.95.2.2              iburst             ——配置自有ntp服务器IP

server   10.95.2.6             iburst

4、启动chrony服务

systemctl start chronyd.service           

systemctl enable chronyd.service           —开机自启动

systemctl status chronyd.service           —-查看状态

5、查看时间同步源:

chronyc sources -v


0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用 * 标注