The newly installed server may be set incorrectly. You need to adjust the time zone and adjust the time as follows: Use NTP to synchronize data from a time server.
CP/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
Ntpdate us.pool.ntp.org
The first sentence is to change the current time zone to Shanghai, which is + 8. If you want to change the other time zones, you can check the/usr/share/zoneinfo directory;
The second sentence is to use ntpdate to synchronize the standard time.
If ntpdate is not installed, you can run Yum:
Yum install-y ntpdate
Add scheduled tasks and synchronize the clock every 10 minutes
Crontab-e
0-59/10 ****/usr/sbin/ntpdate us.pool.ntp.org | logger-T NTP
China National Time Service Center:
Http://www.time.ac.cn/stime.asp
Other network time server addresses are as follows: (You can also search for them by yourself)
Time.nist.gov (USA)
Ntp.fudan.edu.cn (Fudan ))(This server is recommended for domestic users)
Timekeeper.isi.edu
Subitaneous. CPSC. ucalgary. ca
Usno.pa-x.dec.com
Time.twc.weather.com
Swisstime. ethz. ch
Ntw.fau.de
Ntp3.fau.de
Time-a.nist.gov
Time-b.nist.gov
Time-nw.nist.gov
Nist1-sj.glassey.com
210.72.145.44 is also a good address, which is fast!