새소식

서버관련/Install

apache - chkconfig 등록방법 (아파치 서비스 등록)

  • -
SMALL

apache - chkconfig 등록방법 (아파치 서비스 등록)

 

 

centos  에서 자동실행 and 서비스 등록

 

cp /경로/apache/bin/apachectl /etc/init.d/httpd
vi /etc/init.d/httpd

#!/bin/sh
#
# chkconfig: 2345 90 90
# description: init file for Apache server daemon
# processname:/경로/apache/bin/apachectl
# config: /경로/apache/conf/httpd.conf
# pidfile /경로/apache/logs/httpd/pid

내용추가

 

 

 

# chkconfig --add httpd
끝!
LIST

'서버관련 > Install' 카테고리의 다른 글

PHP 5.3.10 Configure  (0) 2012.05.02
Apache 2.2.22 configure  (0) 2012.05.02
파일백업 스크립트 <backup.cron>  (0) 2008.06.05
Mysql 데이터베이스 백업 스크립트 DBDUMP.CRON  (0) 2008.06.05
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.