如何在Amazon EC2中设置时区? [英] How to set the time zone in Amazon EC2?

查看:458
本文介绍了如何在Amazon EC2中设置时区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将在运行Ubuntu Linux的Amazon EC2实例中设置的时区更改为本地时间吗?

I want to change the time zone set in my Amazon EC2 instance running Ubuntu Linux to local time?

我的问题

如何在Amazon EC2中更改时区? / p>

How to change the time zone in Amazon EC2?

推荐答案

应该与您的桌面Ubuntu进程没有什么不同。请参见此处

it should be no different than your desktop Ubuntu process. See here


  1. SSH到EC2服务器

  2. 执行以下操作(将时区设置为 Australia / Adelaide

$ echo "Australia/Adelaide" | sudo tee /etc/timezone
Australia/Adelaide
$ sudo dpkg-reconfigure --frontend noninteractive tzdata

Current default time zone: 'Australia/Adelaide'
Local time is now:      Sat May  8 21:19:24 CST 2010.
Universal Time is now:  Sat May  8 11:49:24 UTC 2010.


更新

您可以使用 tzselect 实用程序进行浏览。参见此处: http://manpages.ubuntu.com/manpages/precise/ man1 / tzselect.1.html

You can use tzselect utility to browse through. See here: http://manpages.ubuntu.com/manpages/precise/man1/tzselect.1.html

这是一个交互式软件。我的Ubuntu(11.10)拥有它。

It's an interactive software. My Ubuntu (11.10) has it.

您还可以参考此维基百科文章

巴西

Brazil/Acre
Brazil/DeNoronha
Brazil/East
Brazil/West

这篇关于如何在Amazon EC2中设置时区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆