linux时间同步设置 1.安装软件 # yum -y install ntp 2.执行同步命令 # ntpdate time1.aliyun.com 如果出现这个问题 尝试添加供应商DNS地址 # vi /etc/resolv.conf nameserver 114.114.114.114 nameserver 8.8.8.8 在虚拟机etc/resolv.conf 中添加DNS地址 然后再安装 # ntpdate time1