11.3-时间服务
date
# 一般看本地时间
timedatectl
# ntp chrony
# 硬件时间
hwclock --show
# 时间同步
# ntp 包是否安装 老式的
rpm -q ntp
# 新式的 使用
rpm -q chrony
# 集群需要用时间服务支撑。
systemctl status chronyd
vi /etc/chrony.conf
# pool ntp.aliyun.com iburst 和阿里云做时间同步 可改
systemctl start chronyd
# 确认时间服务状态的另一个方法 ^* 便是阿里云的时间服务没问题。
chronyc sources