Background Image
조회 수 25479 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

CUBRID Linux 부팅시 자동시작 서비스 설정 방법

소개: LINUX 부팅시 CUBRID를 자동 시작하도록 정리한 문서이다

2013-03-29 기술본부, 정만영

적용 대상: CUBRID2008

목 차

CUBRID2008 제품설치... 1

CUBRID 설정... 1

CUBRID DB 구동 설정... 1

자동시작 SCRIPT 설정... 2

chkconfig 설정 방법... 2

CUBRID PROCESS확인... 2

CUBRID SERVICE 정지... 3

 

CUBRID2008 제품설치

CUBRID 제품설치는 cubrid user를 생성하고 설치한다.

#>useradd cubrid

$>su - cubrid

$>sh CUBRID-8.4.3.7007-linux.x86_64.sh

$> cubrid_rel

CUBRID 2008 R4.1 (8.4.1.7007) (64bit release build for linux_gnu) (Oct 11 2012 21:02:53)

CUBRID 설정

CUBRID DB 구동 설정

CUBRIDcubrid service start 시 데이터베이스 구동은 $CUBRID/conf/cubrid.conf에서 설정이 필요하다. 아래 설정은 demodbtestdb 데이터베이스를 구동하도록 등록한 예제이다.

$>vi $CUBRID/conf/cubrid.conf

:

# Any combinations are available with server, broker, manager and heartbeat.

service=server,broker,manager

# The list of database servers in all by 'cubrid service start' command.

# This property is effective only when the above 'service' property contains 'server' keyword.

server=demodb,testdb

자동시작 SCRIPT와 설정

CUBRID 데몬 스크립트는 $CUBRID/share/init.d 위치에 cubrid 스크립트를 이용하고 CUBRID 제품을 설치한 user 정보로 스크립트에서 아래와 같이 ‘ex)CUBRID_USER=cubrid’ 수정한다.

$> cd $CUBRID/share/init.d

$> vi cubrid

### CUBRID USER NAME VALUE ##################

CUBRID_USER=cubrid

chkconfig 설정 방법

위에서 작성한 스크립트를 /etc/init.d directory 위치로 복사하고 root user에서 cubrid 데몬을 아래와 같이 설정한다.

#> cp /home/cubrid/CUBRID/share/init.d/cubrid /etc/init.d/

#> chkconfig --add cubrid

#> chkconfig --level 0345 cubrid on

#> chkconfig –list | grep cubrid

cubrid          0:on    1:off   2:on    3:on    4:on    5:on    6:on

CUBRID PROCESS확인

Server reboot하고 cubrid 데몬을 등록한 CUBRID Service 동작을 확인한다.

#> reboot

부팅 데몬에 cub_auto_start OK되는지 확인.

#> su - cubrid

$> cubrid service status

@ cubrid master status

++ cubrid master is running.

@ cubrid server status

 Server demodb (rel 8.4, pid 4068)

Server testdb (rel 8.4, pid 4118)

@ cubrid broker status

NAME           PID  PORT  AS  JQ      REQ  TPS  QPS    LONG-T    LONG-Q  ERR-Q

================================================================================

* query_editor  4159 30000   5   0        0    0    0    0/60.0    0/60.0      0

* broker1       4169 33000   5   0        0    0    0    0/60.0    0/60.0      0

@ cubrid manager server status

++ cubrid manager server is running.

CUBRID SERVICE 정지

서버 정지는 CUBRID 서비스(process) 정지하고 서버를 down시키는 방법을 권장한다.

#>su - cubrid

$>cubrid service stop

@ cubrid server stop: demodb

@ cubrid server stop: testdb

Server demodb notified of shutdown.

This may take several minutes. Please wait.

++ cubrid server stop: success

@ cubrid broker stop

++ cubrid broker stop: success

@ cubrid manager server stop

++ cubrid manager server stop: success

@ cubrid master stop

++ cubrid master stop: success

$>cubrid service status

@ cubrid master status

++ cubrid master is not running.

@ cubrid server status

++ cubrid master is not running.

@ cubrid broker status

++ cubrid broker is not running.

@ cubrid manager server status

++ cubrid manager server is not running.

$>ps –ef | grep cubrid

cubrid    4722  4721  0 14:52 pts/0    00:00:00 -bash

cubrid    4776  4722  0 14:52 pts/0    00:00:00 ps -ef


  1. CUBRID Migration방법(by unloaddb & loaddb)

    Date2015.07.01 Category기타 By주현 Views21901
    Read More
  2. 콘솔에서 마이그레이션 하기.

    Date2015.06.19 Category기타 By권호일 Views13432
    Read More
  3. CUBRID HA 환경에서 Apache-PHP 설정 가이드

    Date2015.06.16 CategoryPHP By이용미 Views10665
    Read More
  4. CUBRID isolation level & Dirty Read

    Date2015.05.29 Category기타 By정만영 Views11314
    Read More
  5. Windows 에 설치 된 JRE 설치 위치 확인 하기.

    Date2015.05.28 CategoryWindows By성진 Views12571
    Read More
  6. CUBRID와 MyBATIS 빠르게 연동하기

    Date2015.05.07 CategoryJava By김승훈 Views19141
    Read More
  7. CUBRID Linux 부팅시 자동시작 서비스 설정 방법

    Date2013.09.16 CategoryLinux By정만영 Views25479
    Read More
  8. phpize를 이용한 PHP 모듈 연동 방법(CUBRID2008 R4.3 버전)

    Date2013.05.16 CategoryPHP By이용미 Views20858
    Read More
  9. Apache, PHP 설치 방법

    Date2013.05.16 CategoryPHP By이용미 Views41248
    Read More
  10. HA 환경 구성 시 데이터 복제 지연이 발생하는 경우 ECHO(7) port를 확인하자.

    Date2012.11.29 Category기타 By손승일 Views26445
    Read More
  11. VB에서 CUBRID ODBC/OLEDB 사용하는 방법 및 샘플코드.

    Date2012.06.30 CategoryODBC/OLEDB Byseongjoon Views26927
    Read More
  12. CUBRID와 Oracle의 Clob 타입 사용 방법 비교.

    Date2012.06.30 CategoryJava Byseongjoon Views54561
    Read More
  13. CUBRID기반으로 XE 운영하기 – 설치가이드

    Date2012.04.13 CategoryInstall Bycubebridge Views30933
    Read More
  14. select .. for update 처리를 위한 Stored Procudure 등록 및 사용법

    Date2011.12.10 Category기타 By남재우 Views24872
    Read More
  15. LINUX CUBRID 4.0 매니저 설치방법

    Date2011.07.19 CategoryInstall By정만영 Views23654
    Read More
  16. CUBRID Ubuntu Launchpad Installation 방법

    Date2011.07.19 CategoryInstall By정만영 Views29604
    Read More
  17. 자주 발생하는 큐브리드(cubrid) 에러 메시지 정리

    Date2011.07.14 Category기타 Byadmin Views81438
    Read More
  18. [주의사항] CUBRID에서의 BLOB/CLOB 사용시 백업 및 복구에 대한 주의 점

    Date2011.07.14 Category기타 Byadmin Views52792
    Read More
  19. CUBRID 매니저 R3.1에서 웹호스팅 서버의 CUBRID R2.1 접속하는 방법 (큐브리드 매니저에서 다른 버전의 큐브리드 서버 접속 방법)

    Date2011.07.14 Category기타 Byadmin Views31509
    Read More
  20. 동시 접속자에 따른 파라미터 설정

    Date2011.07.14 Category기타 Byadmin Views25686
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 Next
/ 9

Contact Cubrid

대표전화 070-4077-2110 / 기술문의 070-4077-2113 / 영업문의 070-4077-2112 / Email. contact_at_cubrid.com
Contact Sales
© 2024 CUBRID Corp. All rights reserved.