Linux系统中虚拟机CentOS时间与本地时间不一致
修改前时间
**[root@localhost shaole]# date
2021年 04月 23日 星期五 03:43:19 CST**
安装时间同步插件
<pre>[root@localhost shaole]# **yum install ntpdate**
已加载插件:fastestmirror, langpacks
Determining fastest mirrors
* base: mirrors.ustc.edu.cn
* extras: mirrors.ustc.edu.cn
* updates: mirrors.ustc.edu.cn
base | 3.6 kB 00:00
extras | 2.9 kB 00:00
updates | 2.9 kB 00:00
(1/4): base/7/x86_64/group_gz | 153 kB 00:00
(2/4): extras/7/x86_64/primary_db | 232 kB 00:00
(3/4): base/7/x86_64/primary_db | 6.1 MB 00:01
(4/4): updates/7/x86_64/primary_db | 7.1 MB 00:02
正在解决依赖关系
--> 正在检查事务
---> 软件包 ntpdate.x86_64.0.4.2.6p5-28.el7.centos 将被 升级