Since the company's games need to be launched in Vietnam and South Korea, the time in Vietnam is one hour slower than ours, and the time in South Korea is one hour faster than ours, therefore, when configuring the system environment on the server, you need to set the time point for the Vietnamese server to synchronize with Vietnam, and the time point for the Korean server to synchronize with South Korea. the following settings are performed: 1. set the time synchronization for Vietnamese servers: cat & gt;/var/spool/cron/root & lt; EOF */30 **
Since the company's games need to be launched in Vietnam and South Korea, the time in Vietnam is one hour slower than ours, and the time in South Korea is one hour faster than ours, therefore, when configuring the system environment on the server, you need to set the time point for the Vietnamese server to synchronize with the Vietnamese server. the time point for the Korean server to synchronize with the Korean server is as follows:
1. set the time synchronization for Vietnamese servers:
Cat>/var/spool/cron/root < */30 */usr/sbin/ntpdate nt1_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 < 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 ntw.cs. mu. OZ. AU
Server ntp.alaska.edu
Driftfile/var/lib/ntp. drift
EOF
Ntpdate cn.pool.ntp.org
/Sbin/hwclock-w
2. set Korean server time synchronization:
Cat>/var/spool/cron/root < */30 */usr/sbin/ntpdate nt1_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 < 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 ntw.cs. mu. OZ. AU
Server ntp.alaska.edu
Driftfile/var/lib/ntp. drift
EOF
Ntpdate cn.pool.ntp.org
/Sbin/hwclock-w