学习

date

1
date "+%Z%z"

timedatectl

1
2
3
timedatectl status
timedatectl set-timezone Asia/Shanghai
cat /etc/timezone

chronyd

1
2
3
4
5
6
7
8
9
rpm -ql chrony
# yum install chrony --RHEL7默认已安装chrony,而没有安装ntpd.
# systemctl status chronyd --查看chronyd服务状态
# systemctl enable chronyd --开机启动
chronyc sources - v
chronyc sourcestats -v
sudo netstat -antulp | grep chronyd
chronyc tracking
chronyc makestep

ntpd

其他