In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to modify the time zone in linux vps". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn the article "how to modify the time zone in linux vps".
Because most of the server motherboards where foreign VPS is located use US time, the default time shown by Linux installed on VPS may be US time zone time. If you need VPS to display China time zone and time alignment, you can use the following methods.
Timing according to NTP network
Java code
The code is as follows:
# date-R
On Sunday, November 18, 2012, 19:33:23, the tool for using network synchronization under the CSTLinux system is ntpdate. If you do not install ntpdate, you need to install ntpdate: under Centos:
Java code
The code is as follows:
# yum-y install ntpdate ntp
Under Debian or Ubuntu:
Java code
# sudo apt-get install-y ntpdate ntpntpdate
After installation, you can use ntpdate to update the Linux system (we use windows's time server for timing):
Java code
The code is as follows:
# ntpdate time.windows.com
Change the time zone of VPS
If VPS defaults to non-China time zone, the following command can be used to change it to China time zone:
Java code
The code is as follows:
# cp / usr/share/zoneinfo/Asia/Shanghai / etc/localtime
Note: under Openvz VPS, you can only modify the time zone, but not the time of the VPS. Because the time of Openvz is synchronized with the VPS server. If you find that your Openvz VPS time is wrong, you can notify the seller of VPS to check it.
The above is all the contents of the article "how to modify the time zone in linux vps". 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.