강좌
클라우드/리눅스에 관한 강좌입니다.
데이터베이스 분류

큐브리드 linux에서의 설치

작성자 정보

  • 웹관리자 작성
  • 작성일

컨텐츠 정보

본문

sub_title_icon.gif Linux에서의 설치와 실행
1. 설치 시 확인 사항
Linux 버전의 CUBRID 데이터베이스를 설치하기 전에 다음 사항을 점검한다.
구 분 내 용
운영체제 버전 운영체제 버전에 상관 없이 glibc 2.3.4 버전 이상만 지원한다.
glibc 버전은 다음과 같은 방법으로 확인한다.
rpm -q glibc
64비트 여부 64비트 운영체제에 32비트 버전의 CUBRID를 설치하면, 32비트 버전의 추가 라이브러리가 설치되었는지 확인한다.
설치할 추가 라이브러리는 다음과 같다.
Curses Library (rpm -q ncurses)
2. CUBRID 설치
설치 프로그램은 바이너리 셸로 되어 있어 자동으로 설치할 수 있다. 설치를 진행하려면 다운로드한 설치 파일을 바이너리 모드로 Linux 서버의 FTP로 전송한다.
icon_sub02.gif 다음 예제와 같이 설치 프로그램을 수행한다.
$ sh CUBRID-8.1.3.1020-linux.sh
Do you agree to the above license terms? [yes or no] : yes
Do you want to install this software to the default(/home1/daniel/CUBRID) directory? [yes or no] : yes
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.3 servers are only compatible with the CUBRID 2008 R1.3 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
  % . /home1/daniel/.cubrid.sh
  % cubrid service start

위의 예제와 같이 다운로드한 파일(CUBRID-8.1.3.1020-linux.sh)을 설치한 후, CUBRID 데이터베이스를 사용하기 위해서는 CUBRID 관련 환경 정보를 설정해야 한다.
이 설정은 해당 터미널에 로그인할 때 자동 설정되도록 지정되어 있으므로 설치 후 최초 한 번만 수행하면 된다.
$ . /home1/daniel/.cubrid.sh
이제 CUBRID 매니저에 접속할 수 있다. JDBC와 같은 드라이버에서 접속하려면 CUBRID 매니저 서버와 브로커를 구동시켜야 한다.
icon_sub02.gif 구동 방법은 다음과 같다.
$ cubrid service start
cubrid service를 구동시킨 후 정상적으로 구동되었는지 확인하려면 다음과 같이 grep으로 cub_* 프로세스들이 구동되어 있는지를 확인한다.
$ 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
※ 참고 : RPM으로 설치할 때에는 의존성을 꼭 확인해야 한다. 의존성을 무시(--nodeps)하고 설치하면 실행되지 않을 수 있다.

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,041 명
  • 현재 강좌수 :  35,855 개
  • 현재 접속자 :  113 명