Centos测试服务器同步时间
1. 安装ntpdate命令
[root@localhost ~]# yum install ntpdate -y
2. 用ntpdate命令对时
[root@localhost ~]# ntpdate ntp.aliyun.com

3. 写计划任务,每天进行一次对时

1. 安装ntpdate命令
[root@localhost ~]# yum install ntpdate -y
2. 用ntpdate命令对时
[root@localhost ~]# ntpdate ntp.aliyun.com

3. 写计划任务,每天进行一次对时
