'mysql / apache 소스컴파일 후 서비스로 등록하기'에 해당되는 글 1건

  1. 2009.05.15 mysql / apache 소스컴파일 후 서비스로 등록하기
mysql / apache 소스컴파일 후 서비스로 등록하기 소스설치를 기준
1) mysql 의 경우 mysql 소스디렉토리의 support-files의 mysql.server 을 /etc/rc.d/init.d 에 mysqld 로 복사.

/bin 폴데에 mysql.server 있음
# chkconfig --add mysqld
# chkconfig --level 2345 mysqld on
# chmod 755 /etc/rc.d/init.d/mysqld

이제 ntsysv 에 보시면 mysqld 가 추가되어 있음

2. 아피치의 경우 해당 prefix 의 bin 디렉토리 (대개 /usr/local/apache/bin)의 apachectl 파일. /etc/rc.d/init.d/apachectl 로 복사.
 chkconfig 를 위하여 파일을 열어 상단 부분에 다음을 추가.
--- /etc/rc.d/init.d/apachectl
--- # chkconfig: - 92 92
# description: Apache Web Server Version 버전 저장.
# chkconfig --add apachectl
# chkconfig --level 2345 apachectl on
# chmod 755 /etc/rc.d/init.d/apachectl 하신 후 ntsysv 보시면 apachectl 이 추가되어 있음

다음 부터 서버 재시동시 mysql, apache 자동시작됨

펌주소 : http://sir.co.kr/bbs/board.php?bo_table=pl_mysql&wr_id=29&page=5
Posted by [czar]
,