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가 있습니다.
관련글
'개발 이야기 > Linux' 카테고리의 다른 글
| [Ubuntu] flashplayer 설치하기 (0) | 2010/09/26 |
|---|---|
| [Kubuntu] NetworkManager is disabled (0) | 2010/09/26 |
| [Linux] 리눅스에서 서비스 등록하기 (0) | 2010/04/01 |
| [리눅스] 파일 압축 관리 (0) | 2010/01/10 |
| [tomcat] Cannot find ... bin/catalina.sh (0) | 2009/12/20 |
| [우분투] 터치패드를 인식하지 못할 때... (5) | 2009/12/07 |