CentOS Vietnam Korea server time Synchronization configuration method

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.