2010/04/01 14:50

CentOS에 bitnami를 이용해서 redmine을 설치한후 redmine을 서비스로 등록해서 자동시작하기를 예로 들어보겠습니다.


환경

CentOS5.4
Bitnami-redmine


1. root로 로그인합니다.

# su -


2. 레드마인 설치 경로에 있는 ctlscript.sh 파일을 init.d로 복사합니다.
  주의~! 뒤에 확장자 sh는 빼주세요

# cp /opt/redmine-0.8.7-0/ctlscript.sh /etc/init.d/bitnami-redmine


3. 복사가 끝나면 복사한 파일을 vim으로 열어서 아래 하늘색 박스의 파란 텍스트를 추가해 줍니다.

# vim /etc/init.d/bitnami-redmine


#!/bin/sh

# chkconfig: 2345 80 30
# description: BitNami Service
# processname: bitnami-redmine
# Source funtion library
. /etc/rc.d/init.d/functions

# Disabling SELinux if enabled


4. 이제는 chkconfig 명령어를 통해서 서비스에 등록합니다.

# chkconfig --add bitnami-redmine


5. redmine 서비스를 시작합니다. 아래 하늘색 박스와 비슷한 메세지가 나온다면 정상적으로 실행된겁니다.

# service bitnami-redmine start

100401 14:26:48 mysqld_safe Logging to '/opt/redmine-0.8.7-0/mysql/data/mysqld.log'.
100401 14:26:48 mysqld_safe Starting mysqld.bin daemon with databases from /opt/redmine-0.8.7-0/mysql/data
/opt/redmine-0.8.7-0/mysql/scripts/ctl.sh : mysql  started at port 3306
starting port 3001
starting port 3002
Syntax OK
/opt/redmine-0.8.7-0/apache2/scripts/ctl.sh : httpd started at port 80
/opt/redmine-0.8.7-0/subversion/scripts/ctl.sh : subversion started at port 3690


6. bitnami-redmine 에서 사용할 수 있는 명령어는 start, stop, status, restart, help가 있습니다.


관련글

크리에이티브 커먼즈 라이선스
Creative Commons License
1 ... 26 27 28 29 30 31 32 33 34 ... 82