How does CentOS modify the time zone and time ?, Centos Change Time Zone
Modify the time zone:
The CentOS time zone is configured in/etc/localtime. The simplest way to modify it is to make a link to the time zone you want to configure (the available time zone list is in/usr/share/zoneinfo)
Ln-sf/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
You can also directly Overwrite
Cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
Verify (View) the current time zone:
Date
Modification time:
Simple and clear:
Date MMDDhhmmYYYY
MM: two digit month number
DD: two digit date
Hh: two digit hour (24 hour system)
Mm: two digit minute
YYYY: four digit of year
Or
Date-s '2017-06-21 21:50:00'
Network Time Synchronization:
After the time zone is set, use ntp to synchronize the standard time .?
Ntp: network time protol )?
Installation:
Yum install ntp
Synchronization:
Ntpdate pool.ntp.org