`

Ubuntu更改时区

 
阅读更多

Ubuntu更改时区

 

#tzselect

 

Please identify a location so that time zone rules can be set correctly.

Please select a continent or ocean.

 1) Africa

 2) Americas

 3) Antarctica

 4) Arctic Ocean

 5) Asia

 6) Atlantic Ocean

 7) Australia

 8) Europe

 9) Indian Ocean

10) Pacific Ocean

11) none - I want to specify the time zone using the Posix TZ format.

#? 5    输入“5”选择 亚洲

 

Please select a country.

 1) Afghanistan          18) Israel            35) Palestine

 2) Armenia          19) Japan            36) Philippines

 3) Azerbaijan          20) Jordan            37) Qatar

 4) Bahrain          21) Kazakhstan        38) Russia

 5) Bangladesh          22) Korea (North)        39) Saudi Arabia

 6) Bhutan          23) Korea (South)        40) Singapore

 7) Brunei          24) Kuwait            41) Sri Lanka

 8) Cambodia          25) Kyrgyzstan        42) Syria

 9) China          26) Laos            43) Taiwan

10) Cyprus          27) Lebanon            44) Tajikistan

11) East Timor          28) Macau            45) Thailand

12) Georgia          29) Malaysia            46) Turkmenistan

13) Hong Kong          30) Mongolia            47) United Arab Emirates

14) India          31) Myanmar (Burma)        48) Uzbekistan

15) Indonesia          32) Nepal            49) Vietnam

16) Iran          33) Oman            50) Yemen

17) Iraq          34) Pakistan

#? 9    输入“9”选择 中国

 

Please select one of the following time zone regions.

1) east China - Beijing, Guangdong, Shanghai, etc.

2) Heilongjiang (except Mohe), Jilin

3) central China - Sichuan, Yunnan, Guangxi, Shaanxi, Guizhou, etc.

4) most of Tibet & Xinjiang

5) west Tibet & Xinjiang

#? 1     输入“1”选择  北京/上海...

 

Is the above information OK?

1) Yes

2) No

#? 1     输入“1”确认

 

 

 

 

# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

 

# ntpdate cn.pool.ntp.org

28 Oct 15:08:05 ntpdate[14357]: step time server 221.7.129.79 offset -284.085067 sec

 

搞定

 

cn.pool.ntp.org是位于中国的公共NTP服务器,用来同步你的时间

 

分享到:
评论

相关推荐

    ubuntu系统修改时区和时间的方法

    今天小编就为大家分享一篇关于ubuntu系统修改时区和时间的方法,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随小编来看看吧

    ansible.timezone:设置时区的角色

    要求经过测试: Ubuntu 16.04 LTS Ubuntu 18.04 LTS Ubuntu 20.04 LTS 应该与: 所有Ubuntu 所有Debian角色变量 ag_timezone : A timezone (e.g Etc/UTC)依存关系没有任何。剧本范例 - hosts : servers roles : - { ...

    docker-ubuntu:片段和示例 Dockerfile 可帮助更快地构建基于 Ubuntu 的映像

    docker-ubuntu 片段和示例 Dockerfile 可帮助更快地构建基于 Ubuntu 的映像。 片段 使用更快的 Docker 注册表 FROM docker....更改时区 RUN echo "Asia/Shanghai" > /etc/timezone RUN dpkg-re

    成功解决 Ubuntu/Linux修改时间 同步网络时间

    问题描述: Linux系统时间不对, 需要修改, 仅需三步 第一步, 先创建上海时区的信息, 进入zoneinfo目录cd /usr/share/zoneinfo 一定要先进入zoneinfo目录 第二步, 执行tzselect, 按提示操作 亚洲的编号是4, 输入4, 按...

    LINUX 下C++ 获取系统时间和设置时间

    LINUX 下C++ 获取系统时间和设置时间,是个类,已经测试通过,需要用管理员用户

    dotfiles:我Linux配置,随时可以窃取或联系

    在旅行时,可以按以下方式更改时区: timedatectl set-timezone Europe/Paris 设置邮件 安装: 新mutt 不多 杂种 msmtp offlineimap 在其他计算机上: 导入GPG密钥 使用加密的密码复制文件夹 使用默认邮箱...

    Forex Time-crx插件

    支持更改时区,因此您可以查看带有所选时区的小时。 注意:目前,外汇时间不考虑假期。 0.4.0版中的新功能:-添加了市场时间显示自定义。 现在支持12小时,24小时和自定义格式0.3.0版中的新功能:-升级了所有依赖项...

    外汇时间「Forex Time」-crx插件

    支持更改时区,因此您可以查看带有所选时区的小时。注意:目前,外汇时间不考虑假期 0.4.0版中的新功能:-添加了市场时间显示自定义。现在支持12小时,24小时和自定义格式0.3.0版中的新功能:-升级了所有依赖关系,...

    serverAutomation

    将时区更改为孟加锡 最佳化 通过密码禁用ssh登录,仅允许私钥 如何使用 ? wget https://raw.githubusercontent.com/navotera/serverAutomation/master/init.sh chmod +x init.sh sh init.sh 去做 直播进度 选择...

    opentrade:面向机构投资者的现代C ++开源OEMS和日内算法交易平台-Source trading platform

    完全线程安全的设计,可以在运行时修改所有内容,例如,重新加载交易品种列表,修改报价尺寸表,手数,交易时区和交易/休息时间等。 内置执行模拟器 配置简单 内部交叉 执行优化框架 订单汇总 定制指标扩展 智能...

    新版Android开发教程.rar

    • Linux (tested on Linux Ubuntu Dapper Drake) Supported Supported Supported Supported Development Development Development Development Environments Environments Environments Environments Eclipse IDE o...

Global site tag (gtag.js) - Google Analytics