2010/09/26 00:15


BitNami가 뭔가요?

BitNami는 블로그나 위키같은 웹 어플리케이션을 Linux, Windows, Mac OS등에 매우 간단하게 설치 할 수 있게 해주는 인스톨러를 만드는 프로젝트 이름입니다.

BitNami에는 Stack이라고 하는  Infrastructure가 있고 각각의 어플리케이션의 인스톨러와 모듈이 있습니다.

Stack은 Apache HTTP Server나 MySQL등을 컴퓨터에 한 번만 설치해놓고 각 어플리케이션의 모듈을 추가하는 개념입니다.

좀 더 자세히 설명하자면 Stack을 이용해서 APM(Apache HTTP Server, PHP, MySQL)등을 설치하고 이를 이용해서 블로그나 위키등의 모듈을 추가해서 돌리는 겁니다.

만약 Stack을 사용하지 않고 각 어플리케이션의 인스톨러를 사용해서 설치를 하게되면 APM이 깔리는건 동일하지만 하나 이상의 어플리케이션을 설치하게 되면 APM이 중복되서 설치됩니다.

따라서 '난 서버에 딱 한개의 어플리케이션만을 설치하겠다'는 분은 그냥 어플리케이션을 이용해서 설치하시면 됩니다. 하지만 '난 서버에 블로그도 설치하고 위키도 설치하고 Redmine도 설치하고 싶다'는 분은 필히 Stack을 사용하시기를 추천하는 바입니다.

제 경우는 가상서버호스팅에 RubyStack을 설치해서 Redmine과 Textyle을 같이 돌리고 있습니다. Redmine은 BitNami 모듈을 이용해서 설치했고 Textyle은 수동으로 설치해서 돌리고 있습니다.

westzero.pe.kr로 접속하시면 Textyle이 나오고 westzero.pe.kr/redmine을 접속하시면 Redmine이 나옵니다.

Stack에 여러가지가 있어서 뭐가 뭔지 모르겠어요...

Stack의 종류는 아래과 같으며 각 스택의 네이밍 룰도 간단하게 요약해 보았습니다.

DjangoStack, JRubyStack, LAMPStack, LAPPStack, MAMPStack, MAPPStack, RubyStack, SAMPStack, WAMPStack, WAPPStack

첫 글자

L : Linux

W : Windows

M : Mac OS

기타 : Linux, Windows, Mac OS용 모두 있다는 뜻입니다. Django, JRuby 등

첫글자 이후

A : Apache HTTP Server

P : PHP or PostgreSQL(P가 두 번 나오는 경우 두 번째 P가 PostgreSQL입니다.)

M : MySQL



                               
저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License
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
2010/01/08 09:33

에러 발생 상황

bitnami로 설치한 redmine에서 htttp://url은 잘 보이는데 http://url/redmine에서 503 에러가 발생
서버를 비정상적으로 종료하면 발생

에러 메시지

[root@localhost ~]# /etc/init.d/bitnami-drupal start
/opt/redmine-0.8.7-0/mysql/scripts/ctl.sh : mysql  (pid 2884) already running
starting port 3001
** !!! PID file tmp/pids/mongrel.3001.pid already exists.  Mongrel could be running already.  Check your log/mongrel.3001.log for errors.
** !!! Exiting with error.  You must stop mongrel and clear the .pid before I'll attempt a start.

starting port 3002
** !!! PID file tmp/pids/mongrel.3002.pid already exists.  Mongrel could be running already.  Check your log/mongrel.3002.log for errors.
** !!! Exiting with error.  You must stop mongrel and clear the .pid before I'll attempt a start.

Syntax OK
/opt/redmine-0.8.7-0/apache2/scripts/ctl.sh : httpd (pid 2949) already running
/opt/redmine-0.8.7-0/subversion/scripts/ctl.sh : subversion  (pid 2962) already running

에러발생 원인

비정상적인 종료로 인해 PID 파일이 정상적으로 처리되지 않음


해결방법

간단하다. 문제가 되는 파일을 삭제하고 redmine을 다시 시작한다.

[root@localhost ~]# rm /opt/redmine-0.8.7-0/apps/redmine/tmp/pids/mongrel.3001.pid
rm: remove 일반 파일 `/opt/redmine-0.8.7-0/apps/redmine/tmp/pids/mongrel.3001.pid'? y
[root@localhost ~]# rm /opt/redmine-0.8.7-0/apps/redmine/tmp/pids/mongrel.3002.pid
rm: remove 일반 파일 `/opt/redmine-0.8.7-0/apps/redmine/tmp/pids/mongrel.3002.pid'? y
[root@localhost ~]# /etc/init.d/bitnami-drupal stop
/opt/redmine-0.8.7-0/subversion/scripts/ctl.sh : subversion stopped
Syntax OK
/opt/redmine-0.8.7-0/apache2/scripts/ctl.sh : httpd stopped
already stopped port 3001
already stopped port 3002
/opt/redmine-0.8.7-0/mysql/scripts/ctl.sh : mysql stopped
[root@localhost ~]# /etc/init.d/bitnami-drupal start
100108 09:30:08 mysqld_safe Logging to '/opt/redmine-0.8.7-0/mysql/data/mysqld.log'.
100108 09:30:08 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



크리에이티브 커먼즈 라이선스
Creative Commons License