Centos服务器校准时间的方法
2022-12-15
Centos服务器校准时间的方法:
1.安装ntp
$ sudo yum -y install ntp

2.执行校准
连阿里云时间服务器校对。
$ sudo ntpdate ntp1.aliyun.com
其他
$ sudo ntpdate cn.pool.ntp.org
查看当前时间:
$ echo $(date)

参考: https://blog.csdn.net/weixin_45285213/article/details/126270459