开发绝大部分情况设置系统时间即可。
ntpdate用于和特定的服务器校准时间。
ntp服务(service ntpd start) 用于持续的校对时间,因为时间对于服务器来说异常重要。
chrony是CentOS7之后使用的新校准方式。
时间管理
- 系统时钟:date -s “2017-11-26 21:00:00”
- 硬件时间
- hwclock、clock(软连接)
- -s和-w选项
- ntpdate
- yum install ntpdate
- #ntpdate 1.cn.pool.ntp.org
- ntp服务,chrony
- #yum install ntp -y
- cal显示日历(鸡肋的功能)