The problem of inaccurate time of linux virtual machine

If the time zone is inaccurate, use the tzselect command (timezone selection) to select Beijing time. Then write the output command into /etc/profile.d/time.sh.

Then use crontab to write scheduled tasks and execute them once a day.

30 04 * * * /usr/sbin/ntpdate 180.153.248.26 >/tmp/ntpsync.log

 

Guess you like

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