In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about what to do if the revised time zone of Linux 7 does not take effect. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
View current time zone
[root@tidb01 ~] # dateSat Jun 27 13:58:27 EDT 2020 [root@tidb01 ~] # date-RSat, 27 Jun 2020 13:58:36-0400
Modify time zone
Method 1:
[root@tidb01 ~] # ln-s / usr/share/zoneinfo/Asia/Shanghai / etc/localtime [root@tidb01 ~] # ls-l / etc/localtimelrwxrwxrwx 1 root root 35 Jun 28 02:08 / etc/localtime->.. / usr/share/zoneinfo/Asia/Shanghai
Method 2:
[root@tidb01 ~] # timedatectl set-timezone Asia/Shanghai
Method 3:
[root@tidb01 ~] # cat / etc/profile [root@tidb01 ~] # cat .bash _ profile [root@tidb01 ~] # cat .bash _ profile TZ='Asia/Shanghai'; export TZ
Method 4:
[root@tidb01] # 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 Ocean10) Pacific Ocean11) none-I want to specify the time zone using the Posix TZ format.
The query time zone was not modified successfully.
[root@tidb01 ~] # dateSat Jun 27 13:58:50 EDT 2020
Try to copy the Shanghai files from other East 8 time zone operating systems
[root@tidb02 ~] # cp / usr/share/zoneinfo/Asia/Shanghai. [root@tidb02 ~] # scp Shanghai 192.168.30.101:/root
Time zone modified successfully
[root@tidb01 ~] # dateSat Jun 27 14:23:04 CST 2020 [root@tidb01 ~] # date-RSat, 27 Jun 2020 14:23:13 + 0800 what if the time zone modification of Linux 7 shared by the editor does not take effect? if you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.