配置NTP时间服务器
题:配置您的系统,位当前服务器配置一个NTP时间服务器 并 同步时间。
同步域名:cn.pool.ntp.org
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。1、安装chrony服务
yum install -y chrony
2、修改配置文件加入 时间域名。注释掉第一行添加时间域名。
# vim /etc/chrony.conf
#server 0.rhel.pool.ntp.org iburst server cn.pool.ntp.org iburst server 1.rhel.pool.ntp.org iburst server 2.rhel.pool.ntp.org iburst server 3.rhel.pool.ntp.org iburst
3、重启时间服务器、开机自启
systemctl restart chronyd
systemctl enable chronyd
4、设置ntp客户端和服务器同步
timedatectl set-ntp true
5、查看
timedatectl
更多详情:https://www.cnblogs.com/xiangsikai/p/8289472.html

更多精彩