如何在 Amazon EC2 中设置时区?

编程入门 行业动态 更新时间:2024-10-05 21:16:53
本文介绍了如何在 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 中的时区?

How to change the time zone in Amazon EC2?

推荐答案

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

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

  • SSH 到您的 EC2 服务器
  • 执行以下(将时区设置为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 实用程序进行浏览.请参阅此处:manpages.ubuntu/manpages/precise/man1/tzselect.1.html

    You can use tzselect utility to browse through. See here: manpages.ubuntu/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 中设置时区?

    本文发布于:2023-11-28 04:27:08,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1640956.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:时区   如何在   Amazon

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!