As the company's games need to be launched in Vietnam and South Korea, Vietnam time is one hours slower than we, South Korea time faster than we one hours, so the server configuration system environment when you need to set up Vietnam server synchronization point of time in Vietnam, South Korea server synchronization point of time in Korea, the following methods are set as follows:
First, set up Vietnam server time synchronization:
Cat >/var/spool/cron/root <<eof
*/30 * * * */usr/sbin/ntpdate ntp0.cs.mu.OZ.AU >/dev/null 2>&1
Eof
Service Crond Restart
/bin/rm-f/etc/localtime
Cp/usr/share/zoneinfo/asia/saigon/etc/localtime
Cat >/etc/sysconfig/clock <<eof
Zone= "Asia/saigon"
Utc=false
Arc=false
Eof
Cat >/etc/ntp.conf << EOF
Server cn.pool.ntp.org prefer
Server 210.72.145.44
Server cn.pool.ntp.org
Server Ntp1.cs.mu.OZ.AU
Server Ntp0.cs.mu.OZ.AU
Server ntp.alaska.edu
Driftfile/var/lib/ntp/ntp.drift
Eof
Ntpdate cn.pool.ntp.org
/sbin/hwclock-w
Second, set the Korean server time synchronization:
Cat >/var/spool/cron/root <<eof
*/30 * * * */usr/sbin/ntpdate ntp0.cs.mu.OZ.AU >/dev/null 2>&1
Eof
Service Crond Restart
/bin/rm-f/etc/localtime
Cp/usr/share/zoneinfo/asia/seoul/etc/localtime
Cat >/etc/sysconfig/clock <<eof
Zone= "Asia/seoul"
Utc=false
Arc=false
Eof
Cat >/etc/ntp.conf << EOF
Server cn.pool.ntp.org prefer
Server 210.72.145.44
Server cn.pool.ntp.org
Server Ntp1.cs.mu.OZ.AU
Server Ntp0.cs.mu.OZ.AU
Server ntp.alaska.edu
Driftfile/var/lib/ntp/ntp.drift
Eof
Ntpdate cn.pool.ntp.org
/sbin/hwclock-w
This article is from the "Rookie Fighter" blog, please be sure to keep this source http://linushai.blog.51cto.com/4976486/1688098
CentOS Vietnam Korea server time Synchronization configuration method