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
看完上述内容是否对您有帮助呢?如果还想对相关知识有进一步的了解或阅读更多相关文章,请关注小编行业资讯频道,感谢您对小编的支持。
酒店餐饮行业微商城开发的好处?腾讯云服务器怎么导出数据库备份成都阿里云服务器租用华为云服务器可以按小时收费吗如何解决php mail收不到的问题icp备案是否现场核查虚拟主机续费多少钱一年百度云服务器挂机