查看服务器时间
查询一下现在时间
date "+now time is : %Y-%m-%d %H:%M:%S"
安装NTP
sudo yum -y install ntp
使用 ntpdate 测试 NTP
ntpdate pool.ntp.org
如果报错,可以先停止服务
systemctl stop ntpd
启动ntpd daemon,持续校准时间
systemctl star ntpd
查看ntpd daemon是否启动
systemctl status ntpd