강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

데몬 스크립트 파일 : /etc/rc.d/init.d/ntpd

작성자 정보

  • 구돌 작성
  • 작성일

컨텐츠 정보

본문

데몬 스크립트 파일 : /etc/rc.d/init.d/ntpd

 

 ntpd데몬(NTPv4 daemon)을 시작(종료)하는 스크립트입니다. 

 

 

 NTP(Network Time Protocol)은 클라이언트 호스트나 다른서버에서 참조되는 시간을 동기화시키는데 사용됩니다. 

 

 

 

 

사용옵션 : start|stop|restart|condrestart|status

 

설정파일 : /etc/ntp.conf

데몬파일 : /usr/sbin/ntpd

 

스크립트 사용예

[root@command init.d]# /etc/rc.d/init.d/ntpd stop

Shutting down ntpd: [  OK  ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/ntpd start

Starting ntpd: [  OK  ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/ntpd restart

Shutting down ntpd: [  OK  ]

Starting ntpd: [  OK  ]

[root@command init.d]#

[root@command init.d]# /etc/rc.d/init.d/ntpd status

ntpd (pid 2747) is running...

[root@command init.d]#

[root@command init.d]# ps -ef | grep ntpd

ntp       2747     1  0 15:37 ?        00:00:00 [ntpd]

root      2764  2340  0 15:37 pts/0    00:00:00 grep ntpd

[root@command init.d]#

 

 

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,045 명
  • 현재 강좌수 :  35,861 개
  • 현재 접속자 :  77 명