When the system time of Centos is changed to Beijing time, when an automatic task is added today, the server is not Beijing time. now we change it to Beijing time. 1. delete the local time and set the time zone to Shanghai rm-rf/etc/localtimeln-s/usr/share/zoneinfo/Asia/Sh... when the system time of Centos is changed to Beijing time, when an automatic task is added today, the server is not Beijing time. now we change it to Beijing time. 1. delete the local time and set the time zone to Shanghai rm-rf/etc/localtimeln-s/usr/share/zoneinfo/Asia/Shanghai/etc/localtime 2. use date to check whether the time is correct. if it is incorrect, continue the following operations. use ntp to synchronize the time ntpdate stdtime.sinica.edu.tw www.2cto.com 3. if the command not found prompt is displayed, ntp is not installed. run the following command to install yum-y install ntpdate ntp and then run the second step again. Run the date command to check if it is Beijing time. Author: Li Xiangyuan
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.