티스토리 뷰
>>> NTP 설정
## ntp & libedit & ntpdate 설치
yum -y
install
ntp
## peer 설정
vi
/etc/ntp
.conf
## 시작프로그램에 등록
systemctl
enable
ntpd.service
## 서비스 시작
systemctl start ntpd.service
## 확인
ntpq -p
>>> 시간 동기화 설정
## rdate 설치
yum -y
install
rdate
## 하드웨어 시간확인
hwclock -r
#### ※ 시간설정
#### - hwclock -w (운영체제값과 동기화)
#### - hwclock -s (운영체제 값을 동기화 시킴)
## 운영체제 시간확인
date
#### ※ 시간설정
#### - date 082712122014(MM(월)DD(일)hh(시)mm(분)CCCC(년도))
## 타임서버 시간확인
rdate -p
time
.bora.net
#### ※ 시간설정
#### - rdate -s time.bora.net
## 시스템 부팅시 동기화
vi
/etc/rc
.d
/rc
.
local
## cron을 이용한 주기적인 동기화
crontab
-e
# rc.local
/usr/bin/rdate
-s
time
.bora.net
/sbin/hwclock
-w
# crontab
## 매일새벽 1시동기화
00 01 * * *
/usr/bin/rdate
-s
time
.bora.net&&hwclock -w
'Centos7' 카테고리의 다른 글
[Centos7] PHP7 설치 (0) | 2017.02.23 |
---|---|
[Centos7] MariaDB 설치 (0) | 2017.02.23 |
[Centos7] Nginx 설치 (0) | 2017.02.23 |
[Centos7] yum update (0) | 2017.02.23 |
[Centos7] Kernel 업데이트 (0) | 2017.02.23 |