반응형
1. ntpdate가 install 되어있지 않았을 경우 install 한다. # sudo apt-get install ntpdate 2. ntp는 123/udp port를 쓰므로 이 port가 막혀 있을 경우, /etc/services 에 ntp 123/udp => 를 추가 3. 서버 시간을 한국시간으로 세팅하기 위해 /etc/localtime을 링크해 생성해 준다. # ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime 4. # ntpdate [ntp server name] 을 입력하여 ntp server로부터 시간을 얻어온다. # sudo ntpdate time.kriss.re.kr * ntp Server List - time.bora.net - time.nuri.net - ntp.ewha.ent - time.kriss.re.kr 5. 시간 확인 # date Fri Jan 7 09:38:26 KST 2011 시간 정보를 조회만 해보려면, # ntpdate -q time.kriss.re.kr # ntpdate -q pool.ntp.org |
반응형
'연구개발 > Ubuntu' 카테고리의 다른 글
우분투 계정 관리 (0) | 2017.06.13 |
---|---|
한글 (0) | 2016.05.22 |
ubuntu mysql 삭제 (0) | 2014.10.27 |
Ubuntu 12.04에서 chkconfig 사용 (0) | 2014.10.01 |
ubuntu 12.04 에서 mysql 5.6 install (0) | 2014.09.28 |