Install

UNIX/LINUX 에서 CUBRID 설치하기

by 남재우 posted Nov 22, 2008

큐브리드 설치

설치 프로그램은 바이너리 셸로 이루어져 자동 설치할 수 있다. 설치를 진행하려면 다운로드한 설치 파일을 바이너리 모드로 리눅스 서버의 FTP로 전송한다.

다음 예제와 같이 설치 프로그램을 수행한다.

 

  1. [daniel@d78740 ~]$ sh CUBRID-8.1.0.1162-linux.sh
    Input the CUBRID install directory. [Default: /home1/daniel/CUBRID] :
    Install CUBRID to /home1/daniel/CUBRID...
    In case a different version of the CUBRID product is being used in other machines, please note that the CUBRID 2008 R1.0 servers are only compatible with the CUBRID 2008 R1.0 clients and vice versa.
    Do you want to continue? (y/n) [Default: y] : y
  2. CUBRID has been successfully installed.
    demodb has been successfully created.
  3. If you want to use CUBRID, run the following commands
      % . /home1/daniel/.cubrid.sh
      % cubrid service start

 

위의 예제와 같이 다운로드한 파일(CUBRID-8.1.0.1162-linux.sh)을 설치한 후, 큐브리드 데이터베이스를 사용하기 위해서는 큐브리드 관련 환경 정보를 설정해야 한다. 이 설정은 해당 터미널에 로그인할 때 자동 설정되도록 지정되어 있으므로 설치 후 최초 한 번만 수행하면 된다. 

  1. [daniel@d78740 ~]$ . /home1/daniel/.cubrid.sh

 

이제 큐브리드 매니저에 접속할 수있다. JDBC와 같은 드라이버에서 접속하려면 큐브리드 매니저 서버와 브로커를 구동시켜야 한다.

구동 방법은 다음과 같다.

  1. [daniel@d78740 ~]$ cubrid service start
 

cubrid service를 구동시킨 후 정상적으로 구동되었는지에 대한 확인은 다음과 같이 grep으로 cub_* 프로세스들이 구동되어 있는지를 확인한다.

    [daniel@d78740 ~]$ ps -ef | grep cub_
    daniel 15200 1 0 18:57 ? 00:00:00 cub_master
    daniel 15205 1 0 18:57 pts/17 00:00:00 cub_broker
    daniel 15210 1 0 18:57 pts/17 00:00:00 query_editor_cub_cas_1
    daniel 15211 1 0 18:57 pts/17 00:00:00 query_editor_cub_cas_2
    daniel 15212 1 0 18:57 pts/17 00:00:00 query_editor_cub_cas_3
    daniel 15213 1 0 18:57 pts/17 00:00:00 query_editor_cub_cas_4
    daniel 15214 1 0 18:57 pts/17 00:00:00 query_editor_cub_cas_5
    daniel 15217 1 0 18:57 pts/17 00:00:00 cub_broker
    daniel 15222 1 0 18:57 pts/17 00:00:00 broker1_cub_cas_1
    daniel 15223 1 0 18:57 pts/17 00:00:00 broker1_cub_cas_2
    daniel 15224 1 0 18:57 pts/17 00:00:00 broker1_cub_cas_3
    daniel 15225 1 0 18:57 pts/17 00:00:00 broker1_cub_cas_4
    daniel 15226 1 0 18:57 pts/17 00:00:00 broker1_cub_cas_5
    daniel 15229 1 0 18:57 ? 00:00:00 cub_auto start
    daniel 15232 1 0 18:57 ? 00:00:00 cub_js start

 


Articles

1