새소식

서버관련/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
Contents

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

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