Sync Linux server time with NTP (Network Time Protocol) server > Linux/Tech

본문 바로가기

사이트 내 전체검색

Linux/Tech

Sync Linux server time with NTP (Network Time Protocol) server

작성일 19-03-07 20:07

페이지 정보

작성자sbLAB 조회 4,398회 댓글 0건

본문

Sync Linux server time with NTP (Network Time Protocol) server


[ntp설치]


1.설치여부 확인

sudo ntpstat 


2.설치

sudo yum install ntp


3.실행

/etc/init.d/ntpd start


[참고 ntp.conf 경로]

/etc/ntp.conf



[CentOS 7]

[root@localhost ~]# date

Wed May 22 16:50:59 KST 2019

[root@localhost ~]# yum install ntp 

[root@localhost ~]# systemctl start ntpd

[root@localhost ~]# systemctl enable ntpd

Created symlink from /etc/systemd/system/multi-user.target.wants/ntpd.service to /usr/lib/systemd/system/ntpd.service.

[root@localhost ~]# 


댓글목록

등록된 댓글이 없습니다.

Copyright © 소유하신 도메인. All rights reserved.
PC 버전으로 보기