아파치를 ntsysv에 서비스 데몬로 등록하기 > server

본문 바로가기
사이트 내 전체검색

server

아파치를 ntsysv에 서비스 데몬로 등록하기

페이지 정보

작성자 서방님 댓글 0건 조회 108회 작성일 15-11-30 17:15

본문

출처 : http://diveis.tistory.com/111



ntsysv는 런레벨(runlevel)에 등록된 서비스 데몬을 관리하는 것이다.



아래는 아파치 웹서버를 ntsysv에 등록하는 방법이다.


실행 스크립트 복사

#cp /usr/local/apache/bin/apachectl /etc/init.d/httpd

 

권한 부여

#chmod 755 /etc/init.d/httpd

 

#vi /etc/init.d/httpd

아래 라인들을 추가한다.


#!/bin/sh

# chkconfig: 2345 90 90

# description: init file for Apache server daemon

# processname: /usr/local/apache2/bin/apachectl

# config: /usr/local/apache2/conf/httpd.conf

# pidfile: /usr/local/apache2/logs/httpd.pid

 

ntsysv 등록

#chkconfig --add httpd

댓글목록

등록된 댓글이 없습니다.

회원로그인

접속자집계

오늘
92
어제
84
최대
1,347
전체
154,463
Latest Crypto Fear & Greed Index

그누보드5
Copyright © 서방님.kr All rights reserved.