Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Date Azure Ubuntu 15.04虚拟机无法更改日期/时间_Date_Ubuntu_Azure_Time_Virtual Machine - Fatal编程技术网

Date Azure Ubuntu 15.04虚拟机无法更改日期/时间

Date Azure Ubuntu 15.04虚拟机无法更改日期/时间,date,ubuntu,azure,time,virtual-machine,Date,Ubuntu,Azure,Time,Virtual Machine,我正在破坏Azure虚拟机上的Ubuntu 15.04操作系统。我无法使用date命令手动更改系统的日期。下面是一个运行示例: ~# date Tue Jul 7 00:24:58 HKT 2015 ~# date -s "2014-07-04 10:53:59" Fri Jul 4 10:53:59 HKT 2014 ~# date Tue Jul 7 00:25:01 HKT 2015 我已经卸载了ntpdate,但这没有什么区别。以前有人经历过吗 谢谢 一般来说,

我正在破坏Azure虚拟机上的Ubuntu 15.04操作系统。我无法使用date命令手动更改系统的日期。下面是一个运行示例:

~# date    
Tue Jul  7 00:24:58 HKT 2015

~# date -s "2014-07-04 10:53:59"
Fri Jul  4 10:53:59 HKT 2014

~# date   
Tue Jul  7 00:25:01 HKT 2015
我已经卸载了ntpdate,但这没有什么区别。以前有人经历过吗


谢谢

一般来说,您无法更改由外部提供商托管的VM的时间,因为提供模拟时钟的成本太高,因此它往往会占用主机的时钟时间。

因此无法更改Azure Linux VM上的系统时间?但是我可以用centos虚拟机来做,只是不能用Ubuntu15VM。我认为这个问题在某种程度上是ubuntu独有的。看,如果你想通过设置时间来设置时间,你最好还是管理时区。