마크베이스 설치하기
Redhat/CentOS 계열의 리눅스는 rpm 파일을 통해서 Machbase를 설치할 수 있다.
...
이후 데이터베이스가 생성되고 마크베이스 서버와 MWA 웹서버가 자동으로 실행된다.
마크베이스 디렉토리 내부에는 최신 버전으로 심볼릭 링크가 되어 있는 current 라는 디렉토리가 있고, versions 디렉토리에는 마크베이스 버전 별로 파일들이 위치해 있다.
Code Block | ||
---|---|---|
| ||
[root@localhost ~]# cd /opt/machbase [root@localhost machbase]# ls -l total 4 lrwxrwxrwx. 1 root root 28 Jan 2 14:12 current -> /opt/machbase/versions/5.1.9 drwxr-xr-x. 3 machbase machbase 4096 Jan 2 14:12 versions [root@localhost machbase]# |
/etc/init.d 디렉토리내에 machbased 라는 쉡 스크립트가 설치가 되고, 이를 이용하여 마크베이스를 사용할 수 있다.
Code Block | ||
---|---|---|
| ||
[root@localhost ~]# cd /etc/init.d
[root@localhost init.d]# ls -l machbased
-rwxr-xr-x. 1 root root 8446 Oct 30 16:11 machbased
[root@localhost machbase]# |
마크베이스 삭제하기
마크베이스 삭제는 아래 명령어로 수행하면 된다.
Code Block | ||
---|---|---|
| ||
[root@localhost ~]# sudo yum remove machbased |
마크베이스 사용하기
마크베이스를 rpm 으로 설치하면 /etc/init.d/machbased 스크립트 파일이 설치되고 이 파일을 이용하여 마크베이스를 편리하게 사용할 수 있다.
지원하는 기본 기능들은 아래 명령어로 확인하면 된다.
Code Block | ||
---|---|---|
| ||
[root@localhost init.d]# service machbased
Usage: /etc/init.d/machbased {start|stop|kill|restart|createdb|destorydb|check|MWA|console|port|exe|collector|help} |