In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "how to modify the time zone in linux vps". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how linux vps modifies the time zone.
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.
At this point, I believe you have a deeper understanding of "how to modify the time zone in linux vps". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.