CentOS 기준..
/etc/ntp.conf 추가
server time1.sevity.com
server time2.sevity.com
서비스 등록 확인
chkconfig --list | grep ntpd
재시작
/etc/init.d/ntpd restart
확인
ntpq -p
여기서 앞에 *붙으면 싱크받고 있음을 의미
아래는 CentOS 7기준
firewall-cmd --add-service=ntp --permanent
방화벽을 다시 로드합니다.
firewall-cmd --reload
서비스 시작
ntp 서비스를 시작합니다.
systemctl start ntpd
시스템 재부팅 후에도 자동으로 시작할 수 있도록 합니다.
systemctl enable ntpd
반응형
'Programming > Linux' 카테고리의 다른 글
vim (0) | 2020.09.20 |
---|---|
리눅스 퍼미션 개념(파일 권한 관련) (0) | 2020.04.10 |
supervisor (0) | 2020.03.18 |
ssh 자동로그인(ssh-key) (0) | 2020.03.10 |
scp관련 (0) | 2019.12.05 |