centos 中怎么设置二十四小时制

centos 中怎么设置二十四小时制,很多新手对此不是很清楚,为了帮助大家解决这个难题,下面小编将为大家详细讲解,有这方面需求的人可以来学习下,希望你能有所收获。

tzselect

根据提示选择

5 –> 9–>1–>1–>ok

rm/etc/localtimeln-sf/usr/share/zoneinfo/Asia/Shanghai/etc/localtime

这时就可以看到时间已经修改成为国内的时间了。时间也对的。时间为24小时制。

[root@localhostsrc]#tzselectPleaseidentifyalocationsothattimezonerulescanbesetcorrectly.Pleaseselectacontinentorocean.1)Africa2)Americas3)Antarctica4)ArcticOcean5)Asia6)AtlanticOcean7)Australia8)Europe9)IndianOcean10)PacificOcean11)none-IwanttospecifythetimezoneusingthePosixTZformat.

#? 5

Pleaseselectacountry.1)Afghanistan18)Israel35)Palestine2)Armenia19)Japan36)Philippines3)Azerbaijan20)Jordan37)Qatar4)Bahrain21)Kazakhstan38)Russia5)Bangladesh22)Korea(North)39)SaudiArabia6)Bhutan23)Korea(South)40)Singapore7)Brunei24)Kuwait41)SriLanka8)Cambodia25)Kyrgyzstan42)Syria9)China26)Laos43)Taiwan10)Cyprus27)Lebanon44)Tajikistan11)EastTimor28)Macau45)Thailand12)Georgia29)Malaysia46)Turkmenistan13)HongKong30)Mongolia47)UnitedArabEmirates14)India31)Myanmar(Burma)48)Uzbekistan15)Indonesia32)Nepal49)Vietnam16)Iran33)Oman50)Yemen17)Iraq34)Pakistan

#? 9

Pleaseselectoneofthefollowingtimezoneregions.1)BeijingTime2)XinjiangTime

#? 1

Thefollowinginformationhasbeengiven:ChinaBeijingTimeThereforeTZ=\’Asia/Shanghai\’willbeused.Localtimeisnow:SunJul1416:11:23CST2019.UniversalTimeisnow:SunJul1408:11:23UTC2019.IstheaboveinformationOK?1)Yes2)No

#? 1

YoucanmakethischangepermanentforyourselfbyappendingthelineTZ=\’Asia/Shanghai\’;exportTZtothefile\’.profile\’inyourhomedirectory;thenlogoutandloginagain.HereisthatTZvalueagain,thistimeonstandardoutputsothatyoucanusethe/usr/bin/tzselectcommandinshellscripts:Asia/Shanghai[root@localhostsrc]#dateSunJul1404:11:44EDT2019[root@localhostsrc]#rm-rf/etc/localtime[root@localhostetc]#ln-sf/usr/share/zoneinfo/Asia/Shanghai/etc/localtime[root@localhostetc]#dateSunJul1416:13:17CST2019

看完上述内容是否对您有帮助呢?如果还想对相关知识有进一步的了解或阅读更多相关文章,请关注小编行业资讯频道,感谢您对小编的支持。

更多关于云服务器域名注册虚拟主机的问题,请访问西部数码官网:www.west.cn

赞(0)
声明:本网站发布的内容(图片、视频和文字)以原创、转载和分享网络内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-62778877-8306;邮箱:fanjiao@west.cn。本站原创内容未经允许不得转载,或转载时需注明出处:西部数码知识库 » centos 中怎么设置二十四小时制

登录

找回密码

注册