Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

마크베이스 설치하기

마크베이스 설치 패키지를 다운로드 사이트에서 받아서 설치한다.

root@ubuntu:/usr/local/src# wget http://www.machbase.com/dist/machbase-std-5.1.9.community-LINUX-X86-64-release.deb
root@ubuntu:/usr/local/src# sudo dpkg -i machbase-std-5.1.9.community-LINUX-X86-64-release.deb
Selecting previously unselected package machbase.
(Reading database ... 464623 files and directories currently installed.)
Preparing to unpack machbase-std-5.1.9.community-LINUX-X86-64-release.deb ...
Group machbase exist
Unpacking machbase (5.1.9) ...
Setting up machbase (5.1.9) ...

Create database
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 5.1.9.community
     Copyright 2014, MACHBASE Corp. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
Database created successfully.

Ulimit check
65535 PASS

Machbase startup
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 5.1.9.community
     Copyright 2014, MACHBASE Corp. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
Waiting for Machbase server start.
Machbase server started successfully.

MWA startup
SERVER HAS BEEN RESET
SERVER STARTED, PID : 1957
     Connection URL : http://192.168.0.183:5001
Machbase has been installed in : /opt/machbase/
To start Machbase, run the command : service machbased start
To change server port, run the command : service machbased port
To use interactive SQL, execute : machsql
Documentation is available at http://www.machbase.com/document
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
root@ubuntu:/usr/local/src#


설치과정에서 의존성 문제가 발생하면, 다음 명령어로 설치하면 된다.

root@ubuntu:/usr/local/src# sudo apt-get install -f
root@ubuntu:/usr/local/src# sudo dpkg -i machbase-std-5.1.9.community-LINUX-X86-64-release.deb


설치가 완료되면 /opt/machbase 폴더가 생성이 되고 기본 포트는 5656 으로 설정된다.

이후 데이터베이스가 생성되고 마크베이스 서버와 MWA 웹서버가 자동으로 실행된다.


마크베이스 디렉토리 내부에는 최신 버전으로 심볼릭 링크가 되어 있는 current 라는 디렉토리가 있고, versions 디렉토리에는 마크베이스 버전 별로 파일들이 위치해 있다.

root@ubuntu:/usr/local/src# cd /opt/machbase
root@ubuntu:/opt/machbase# ls -l
total 4
lrwxrwxrwx 1 root     root       28 Jan  3 00:25 current -> /opt/machbase/versions/5.1.9
drwxrwxr-x 3 machbase machbase 4096 Jan  3 00:25 versions
root@ubuntu:/opt/machbase#


마크베이스 삭제하기

마크베이스 삭제는 아래 명령어로 수행하면 된다.

root@ubuntu:/opt/machbase# sudo dpkg -r machbase


마크베이스 사용하기

마크베이스를 deb 로 설치하면 /etc/init.d/machbased 스크립트 파일이 설치되고 이 파일을 이용하여 마크베이스를 편리하게 사용할 수 있다.

지원하는 기본 기능들은 아래 명령어로 확인하면 된다.

root@ubuntu:/opt/machbase# cd /etc/init.d
root@ubuntu:/etc/init.d# sudo service machbased
Usage: /etc/init.d/machbased {start|stop|kill|restart|createdb|destroydb|check|MWA|console|port|exe|collector|help}
root@ubuntu:/etc/init.d#









  • No labels