Last update at :2024-06-26,Edit by888u
80% of VPS users may directly choose the system they are accustomed to after purchasing VPS, and then configure the environment according to the one-click package, WEB panel, or directly follow the system if they have other project needs. I rarely have the habit of changing the system time and time zone. If I encounter a panel and time zone compatibility issue, such as a panel such as WDCP, if the time conflicts with the current time, I will not be able to log in to the panel and will always be in the login interface. And some programs have discrepancies with actual operations when submitting articles or projects. At this time, we need to adjust the VPS system time to synchronize it with the actual current required time.
First, modify the Beijing time zone
Here Snail will modify Beijing time as the default time zone. If there are other needs, you can modify it accordingly.
rm -rf /etc/localtime #Delete the default time zone setting first ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime #Replace Shanghai/Beijing as the default
Second, manually modify the time of the current system
date -s \\’14:48:00 2014-12-29\\’
Here, the snail is modified to the current time.
Third, set the synchronization time
ntpdate us.pool.ntp.org
Set the synchronization server time. After the installation is complete, we use date to test the current time.
General VPS has NTP installed. If it is not installed, we need to install yum install -y ntp (centos system) first.
In summary, through the above three steps, we can quickly synchronize the Linux VPS system time with the currently required time zone and time to ensure the normal operation of the project.
Recommended site search: US server, cancellation registration, independent IP space, US high defense space, US php host, Wanwang registered domain name telecom host rental, free cloud server, Netcom server rental, domain name registration,
发表评论