CentOS7 큐브리드 설치

CentOS7 큐브리드 설치

1 다운로드[ | ]

  • http://www.cubrid.com/downloads 접속
  • 오른쪽 CUBRID 9.3 (최신) 아래 --- Linux 64Bit 클릭하여 CUBRID-9.3.8.0003-linux.x86_64.sh 다운로드 (156MB)

2 계정 생성 및 전환[ | ]

[root@zetawiki ~]# useradd cubrid
[root@zetawiki ~]# su - cubrid
[cubrid@zetawiki ~]$

3 업로드[ | ]

[cubrid@zetawiki ~]# ll
total 160092
-rw-r--r--. 1 cubrid cubrid 163932632 Jun 15 02:18 CUBRID-9.3.8.0003-linux.x86_64.sh

4 설치[ | ]

[cubrid@zetawiki ~]# sh CUBRID-9.3.8.0003-linux.x86_64.sh
Copyright (C) 2008-2017 Search Solution Corporation. All rights reserved.
CUBRID is registered trademark of Search Solution Corporation.
... (생략)

* CUBRID Server Engine under GPL v2 or later(http://opensource.org/licenses/GPL-2.0)
--------------------------------------------------------------------------------
--More--[Press space to continue, 'q' to quit.]
q
Do you agree to the above license terms? (yes or no) : yes
Do you want to install this software(CUBRID) to the default(/home/cubrid/CUBRID) directory? (yes or no) [Default: yes] :
Install CUBRID to '/home/cubrid/CUBRID' ...
Since CUBRID broker and server versions should match, please make sure that you are running the same version if you operate them in separate machines. For installation of CUBRID tools like Query Browser, Manager and Web Manager, please refer to http://www.cubrid.org/wiki_tools.
Do you want to continue? (yes or no) [Default: yes] :
CUBRID has been successfully installed.

demodb has been successfully created.

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

[cubrid@zetawiki ~]$

5 서비스 시작[ | ]

[cubrid@zetawiki ~]$ logout
[root@zetawiki ~]# su - cubrid
Last login: Thu Jun 15 11:25:12 EDT 2017 on pts/2
[cubrid@zetawiki ~]$ cubrid service start
@ cubrid master start
++ cubrid master start: success
@ cubrid broker start
unknown host : zetawiki
failed to initialize broker shared memory
++ cubrid broker start: fail
@ cubrid manager server start
++ cubrid manager server start: success
[cubrid@zetawiki ~]$
→ 위와 같이 브로커 시작에 실패하는 경우 다음 문단 참조

6 (Optional) /etc/hosts 설정[ | ]

  • 호스트명이 /etc/hosts에 설정되지 않은 경우, 브로커 시작 실패
  • /etc/hosts에 호스트명을 추가한다.
[cubrid@zetawiki ~]$ exit
logout
[root@zetawiki ~]# vi /etc/hosts
#127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
#::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 localhost zetawiki
::1 localhost zetawiki
[root@zetawiki ~]# su - cubrid
[cubrid@zetawiki ~]$ cubrid service start
@ cubrid master start
++ cubrid master is running.
@ cubrid broker start
++ cubrid broker start: success
@ cubrid manager server start
++ cubrid manager server is running.
[cubrid@zetawiki ~]$ netstat -tnlp | grep cub_
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 0.0.0.0:33000           0.0.0.0:*               LISTEN      4388/cub_broker     
tcp        0      0 0.0.0.0:30000           0.0.0.0:*               LISTEN      4377/cub_broker     
tcp        0      0 0.0.0.0:1523            0.0.0.0:*               LISTEN      4374/cub_master     
tcp        0      0 0.0.0.0:8001            0.0.0.0:*               LISTEN      4404/cub_manager

7 같이 보기[ | ]

8 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}