아파치를 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
댓글목록
등록된 댓글이 없습니다.