...
machbase_home 디렉토리를 생성하고 마크베이스 다운로드 사이트에서 패키지를 다운로드 받아서 복사하고 설치한다.
Code Block | ||
---|---|---|
| ||
[mach@localhostmachbase@localhost ~]$ wget http://www.machbase.com/dist/machbase-std-3.5.01.826b8f29.officialcommunity-LINUX-X86-64-release.tgz [mach@localhostmachbase@localhost ~]$ mkdir machbase_home [mach@localhostmachbase@localhost ~]$ mv machbase-std-3.5.01.826b8f29.officialcommunity-LINUX-X86-64-release.tgz machbase_home/ [mach@localhostmachbase@localhost ~]$ cd machbase_home/ [mach@localhostmachbase@localhost machbase_home]$ tar zxf machbase-std-3.5.01.826b8f29.officialcommunity-LINUX-X86-64-release.tgz [mach@localhostmachbase@loclahost machbase_home]$ ls -all total 71096136620 drwxrwxr-x 16 mach5 machmachbase 4096machbase Aug 8 22:56 . drwx------ 16 mach mach64 4096Oct Aug30 8 2216:55 ..10 3rd-party drwxrwxr-x 6 mach2 machmachbase 87machbase Aug 8 08:42 3rd-party drwxrwxr-x 2 mach mach 4096 AugOct 830 0816:4210 bin drwxrwxr-x 6 machbase machmachbase mach 4096 Aug 8 08:42 189 Dec 21 14:04 collector drwxrwxr-x 2 mach mach 56 Aug 8 08:42 machbase machbase 306 Jan 2 11:36 conf drwxrwxr-x 2 mach mach 6 Aug 8 08:42 machbase machbase 136 Jan 2 11:37 dbs drwxrwxr-x 3 machmachbase machmachbase 21 Aug 8 08:42 22 Oct 30 16:10 doc drwxrwxr-x 2 mach mach 88 Aug 8 08:42 machbase machbase 96 Oct 30 16:10 include -rw-rw-r-- 1 mach mach 72780339 Aug 8 22:54 machbase-std-3.5.0.826b8f2.official-LINUX-X86-64-release.tgzdrwxrwxr-x 2 machbase machbase 29 Oct 30 16:10 install drwxrwxr-x 2 mach mach 62 Aug 8 08:42 install drwxrwxr-x 2 mach mach 4096 Aug 8 08:42 lib drwxrwxr-x 2 mach mach 6 Aug 8 08:42 meta drwxrwxr-x 2 mach mach 40 Aug 8 08:42 msg drwxrwxr-x 8 mach mach 73 Aug 8 08:42 sample drwxrwxr-x 2 mach mach 6 Aug 8 08:42 trc drwxrwxr-x 3 mach mach 18 Aug 8 08:42 webadmin [mach@localhost machbase_home]$ machbase machbase 283 Oct 30 16:10 lib -rw-rw-r-- 1 machbase machbase 139888377 Dec 20 11:33 machbase-std-5.1.9.community-LINUX-X86-64-release.tgz drwxrwxr-x 2 machbase machbase 22 Dec 21 15:43 meta drwxrwxr-x 2 machbase machbase 6 Oct 30 16:10 package drwxrwxr-x 12 machbase machbase 140 Oct 30 16:10 sample drwxrwxr-x 2 machbase machbase 4096 Jan 2 09:37 trc drwxrwxr-x 10 machbase machbase 160 Oct 30 16:10 tutorials drwxrwxr-x 3 machbase machbase 19 Oct 30 16:10 webadmin [machbase@loclahost machbase_home]$ |
설치된 디렉토리 설명은 다음과 같다.
디렉토리 | 설명 |
---|---|
bin | 실행 파일들 |
collector | 로그 수집기 파일들 |
conf | 설정 파일들 |
dbs | 데이터 저장 공간 |
doc | 라이선스 파일들 |
include | CLI 프로그램을 위한 각종 헤더 파일들 |
install | Makefile을 위한 mk 파일 |
lib | 각종 라이브러리 |
msg | Machbase 서버 에러 메시지 |
sample | 각종 예제 파일들 |
trc | Machbase 서버 로그 및 추적 내용들 |
webadmin | MWA 웹서버 파일들 |
3rd-party | grafana 연동 파일들 |
...
Code Block | ||
---|---|---|
| ||
export MACHBASE_HOME=/home/machbase/machbase_home export PATH=$MACHBASE_HOME/bin:$PATH export LD_LIBRARY\_PATH=$MACHBASE_HOME/lib:$LD_LIBRARY_PATH # -- 변경사항을 아래 명령어로 적용한다. source .bashrc |
...
데이터베이스 삭제
데이터베이스는 -d 옵션으로 삭제한다.
모든 데이터가 삭제되므로 매우 주의해서 사용해야 한다.
...