CUBRID 2008 R4.1 기초강좌
리눅스에서의 설치 0 0 37,074

by 큐브리드 큐브리드설치 [2009.03.15]


설치 시 확인 사항

  설치 환경의 32비트 버전과 64비트 버전을 확인하여 환경에 맞는 CUBRID버전을 설치한다. Java기반의 CUBRID 도구 및 자바 저장 프로시저를 사용하려면 Java Runtime Environment (JRE) 1.6 이상 버전이 설치되어 있어야 한다.

CUBRID 엔진 다운로드

CUBRID 엔진 설치

  리눅스용 설치 파일은 쉘 스크립트(sh), RPM , YUM 패키지, PPA 패키지를 제공한다. 더욱 상세한 설명은 CUBRID 최신 매뉴얼>Linux에서의 설치와 실행을 참고한다.

  아래는 .sh파일을 사용하여 CUBRID를 설치하는 예제이다.

 
[cub_user@d78740 ~]$ # sh CUBRID-8.4.1.1018-linux.x86_64.sh

Do you agree to the above license terms? (yes or no) : yes
Do you want to install this software(CUBRID) to the default(/root/cub_user/CUBRID) directory? 
                                                             (yes or no) [Default: yes] : yes
    Install CUBRID to '/root/cub_user/CUBRID...
    In case a different version of the CUBRID product is being used in other machines, 
    please note that the   CUBRID 2008 R4.1 servers are only compatible with the 
    CUBRID 2008 R4.1 clients and vice versa.
    Do you want to continue? (yes or no) [Default: yes] : yes
CUBRID has been successfully installed.    
     
    demodb has been successfully created.

    If you want to use CUBRID, run the following commands
    % . /root/.cubrid.sh
    % cubrid service start

    

  CUBRID엔진을 설치한 후 CUBRID 환경 정보를 설정한다. 이 설정은 해당 터미널에 로그인할 때 자동 설정되도록 지정되어 있으므로 설치 후 최초 한 번만 수행하면 된다.

 
[cub_user@d78740 ~]$ . /root/.cubrid.sh
    

  CUBRID 엔진, 브로커, CUBRID Manager 서버를 구동하기 위하여 아래의 명령어를 실행한다.

 
[cub_user@d78740 ~]$ cubrid service start
@ cubrid master start 
++ cubrid master start: success 
@ cubrid broker start
++ cubrid broker start: success
@ cubrid broker start
@ cubrid manager server start
++ cubrid manager server start: success

    

  CUBRID 관련 프로세스가 정상적으로 구동되었는지 확인하려면, 아래의 명령어를 실행한다.

 
[cub_user@d78740 ~]$ ps -ef | grep cub_ 
cub_user 24292     1  0 14:09 ?        00:00:00 cub_master
cub_user 24295     1  0 14:09 ?        00:00:00 cub_broker
cub_user 24296     1  0 14:09 ?        00:00:00 query_editor_cub_cas_1
cub_user 24297     1  0 14:09 ?        00:00:00 query_editor_cub_cas_2
cub_user 24298     1  0 14:09 ?        00:00:00 query_editor_cub_cas_3
cub_user 24299     1  0 14:09 ?        00:00:00 query_editor_cub_cas_4
cub_user 24300     1  0 14:09 ?        00:00:00 query_editor_cub_cas_5
cub_user 24305     1  0 14:09 ?        00:00:00 cub_broker
cub_user 24306     1  0 14:09 ?        00:00:00 broker1_cub_cas_1
cub_user 24307     1  0 14:09 ?        00:00:00 broker1_cub_cas_2
cub_user 24308     1  0 14:09 ?        00:00:00 broker1_cub_cas_3
cub_user 24309     1  0 14:09 ?        00:00:00 broker1_cub_cas_4
cub_user 24310     1  0 14:09 ?        00:00:00 broker1_cub_cas_5
cub_user 24318     1  0 14:09 ?        00:00:00 cub_auto start
cub_user 24321     1  0 14:09 ?        00:00:00 cub_js start 
cub_user 24327 24219  0 14:10 pts/0    00:00:00 grep cub

    

업그레이드

  기존에 CUBRID가 설치된 환경에서 새로운 버전을 설치하면서 기존 디렉터리를 지정한 경우, 해당 디렉터리에 덮어 쓰기 여부를 확인하는 메시지가 출력된다. No를 입력하면 설치가 중단된다.

 
Directory '/root/ cub_user /CUBRID' exist!
If a CUBRID service is running on this directory, it may be terminated abnormally. 
And if you don't have right access permission on this directory(subdirectories or files), 
install operation will be failed.
    Overwrite anyway? (yes or no) [Default: no] : yes
    

  기존 버전의 CUBRID 환경 설정 파일을 그대로 사용하는 경우에는 no를 입력한다. 새로운 설정 파일을 사용하기 위해 yes를 입력하면, 기존 버전의 환경 설정 파일은 확장자가 .bak인 백업 파일로 보관된다.

 
The configuration file (.conf or .pass) already exists. Do you want to overwrite it? (yes or no) : yes 
    

환경설정

  CUBRID 운영 환경을 고려하여 $CUBRID/conf 디렉터리에서 환경 설정 파일을 수정한다. 특히, CUBRID에서 기본으로 사용하는 포트정보(1523, 30000, 33000, 8001, 8002)를 확인한다.

참고사이트

  - http://www.cubrid.com/zbxe/home

- 강좌 URL : http://www.gurubee.net/lecture/1999

- 구루비 강좌는 개인의 학습용으로만 사용 할 수 있으며, 다른 웹 페이지에 게재할 경우에는 출처를 꼭 밝혀 주시면 고맙겠습니다.~^^

- 구루비 강좌는 서비스 제공을 위한 목적이나, 학원 홍보, 수익을 얻기 위한 용도로 사용 할 수 없습니다.

댓글등록
SQL문을 포맷에 맞게(깔끔하게) 등록하려면 code() 버튼을 클릭하여 작성 하시면 됩니다.
로그인 사용자만 댓글을 작성 할 수 있습니다. 로그인, 회원가입