View time zone Tzselect set time zone [[email protected] ~]# date-r
Sun, Jan 2015 18:42:49-0800
[Email protected] ~]# CD ~[[email protected] ~]# vi. bash_profile
Path= $PATH: $HOME/bin
tz= ' Asia/shanghai '; Export TZ
Export PATH
[[email protected] ~]# source. bash_profile
[Email protected] ~]# date-r
Mon, Jan 2015 10:44:35 +0800 time sync yum install NTP ntpdate ntp-doc//install NTP service Chkconfig NTPD on//Turn on Sync watch ntpq-p//check See NTPQ on Status ntpdate pool.ntp.org//sync server time Ntpdate cn.pool.ntp.orgntpdate asia.pool.ntp.org profile: cat/etc/ntp.conf Cat/etc/sysconfig/ntpd
----Start
Service ntpd Start
or
/etc/rc.d/init.d/ntpd Start
----Stop
Service ntpd Stop
or
/etc/rc.d/init.d/ntpd Stop
This article is from the "Zhang Xiao" blog, make sure to keep this source http://benchmarking.blog.51cto.com/12343634/1878157
CentOS time zone and time settings