Server(Windows&Linux)2021. 3. 4. 10:48

리눅스에서는 rdate 라는 명령어로 시간을 동기화 합니다.

 rdate - get the time via the network

~]# rdate -s time.kriss.re.kr

한국표준과학연구원(KRISS) 에서 운영하는 time server 인데 잘 안되네요.

~]# rdate -s time.bora.net

보라넷 시절부터 운영하는 (현재 LG U+) time server 인데 잘 됩니다.

보통은 시간 동기화시 하드웨어(cmos) 까지 세팅을 해야 하기 때문에

 hwclock - query or set the hardware clock (RTC)

명령어를 조합해서 사용합니다.

결론은 아래 와 같이 사용하면 시간동기화 cmos 설정 까지 같이 됩니다.

~]# time -s time.bora.net | hwclock -w
Posted by 비니미니파