In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "how to set the time zone of linux". The content is simple and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how to set the time zone of linux".
Methods: 1, execute the tzselect command in the terminal; 2, select the item "Asia"-"China"-"Beijing Time"-"yes" in turn; 3, execute the "TZ='Asia/Shanghai';export TZ" command and add it to the ".profile" and log in again.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
When you start to set the time zone, refer to the information on the network and use the tzselect command. It turns out that the tzselect command only tells you how to set the time zone, not actually modify the / etc/sysconfig/clock file.
In other words, the tzselect command simply tells us which time zone to select by setting the environment variable TZ, and then adding the variable to the .profile file. Here's a brief description of how to set the time zone using the tzselect command and how to set the time zone by modifying the / etc/sysconfig/clock configuration file.
Tzselect:
Execute the tzselect command-- > Select Asia-- > Select China-- > Select east China- Beijing, Guangdong, Shanghai, etc-- > and enter 1. The process is shown below:
After executing the tzselect command to select the time zone, the time zone does not change, but at the end of the command prompts you to execute TZ='Asia/Shanghai'; export TZ and add the command to .profile, then exit and log in again. Referring to the result seen by the date command in the figure below, the final time zone is displayed as CST, that is, China Standard time.
The above is all the contents of the article "how to set the time zone of linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, 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.