Correct VPS time zone settings

The first step is to correct the VPS time zone setting:
First, you need to log in to the vps or server via ssh:
date can view the time and time zone. Then:
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
and check the date again to see if the time is correct. If it is correct, then OK.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326250318&siteId=291194637