Posted
Filed under Linux

1. mysql

i) <mysql 소스 디렉토리>/support-files/mysql.server 또는

<mysql 설치 디렉토리>/share/mysql/mysql.server 파일을 /etc/rc.d/init.d/ 디렉토리에 복사한다.

ii) chkconfig 실행

# chkconfig --add mysqld
# chkconfig --level 2345 mysqld on

iii) 서비스 추가 확인

# ntsysv


2. 아피치

i) <아파치 설치 디렉토리>/bin/apachectl 파일을 /etc/rc.d/init.d/ 디렉토리에 복사
ii) chkconfig 를 위하여 /etc/rc.d/init.d/apachectl 파일을 열어 상단 부분에 다음을 추가한다.
--- /etc/rc.d/init.d/apachectl ---
# chkconfig: - 92 92
# description: Apache Web Server Version 1.3.27

저장하고 나와서

iii) chkconfig 실행
# chkconfig --add apachectl
# chkconfig --level 2345 apachectl on

iv) 서비스 추가 확인

# ntsysv

2009/11/09 09:34 2009/11/09 09:34