Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
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#


start

마크베이스 서버를 시작한다.  machadmin -u 와 같은 기능이다.

Code Block
languagebash
[root@localhost ~]$ sudo service machbased start
-----------------------------------------------------------------
     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.
[root@localhost ~]$


stop

마크베이스 서버를 정상 종료한다.  machadmin -s 와 같은 기능이다.

Code Block
languagebash
[root@localhost ~]$ sudo service machbased stop
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 5.1.9.community
     Copyright 2014, MACHBASE Corp. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
Waiting for Machbase server shut down...
Machbase server shut down successfully.
[root@localhost ~]$

kill

마크베이스 서버를 강제 종료한다.  machadmin -k 와 같은 기능이다.

Code Block
languagebash
[root@localhost ~]$ sudo service machbased kill
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 5.1.9.community
     Copyright 2014, MACHBASE Corp. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
Waiting for Machbase server terminated.
Machbase server terminated successfully.
[root@localhost ~]$


restart

마크베이스 서버를  정상 종료하고 재실행한다.  

Code Block
languagebash
[root@localhost ~]$ sudo service machbased kill
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 5.1.9.community
     Copyright 2014, MACHBASE Corp. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
Waiting for Machbase server shut down...
Machbase server shut down successfully.
-----------------------------------------------------------------
     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.
[root@localhost ~]$

createdb

마크베이스 데이터베이스를 생성한다.  machadmin -c 와 같은 기능이다.

Code Block
languagebash
[root@localhost ~]$ sudo service machbased createdb
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 5.1.9.community
     Copyright 2014, MACHBASE Corp. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
Database created successfully.
[root@localhost ~]$

destroydb

마크베이스 데이터베이스를 삭제한다.  machadmin -d 와 같은 기능이다.

Code Block
languagebash
[root@localhost ~]$ sudo service machbased destroydb
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 5.1.9.community
     Copyright 2014, MACHBASE Corp. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
Destroy Machbase database. Are you sure?(y/N) y
Database destoryed successfully.
[root@localhost ~]$


check

마크베이스 서버 구동 상태를 확인한다.  machadmin -e 와 같은 기능이다.

Code Block
languagebash
[root@localhost ~]$ sudo service machbased check
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 5.1.9.community
     Copyright 2014, MACHBASE Corp. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
Machbase server is running with PID(23542).
[root@localhost ~]$

MWA

마크베이스 MWA (Machbase Web Analytics) 웹서버와 관련된 명령어이다.

Code Block
languagebash
[root@localhost ~]$ sudo service machbased  MWA
start | restart | stop | reset | port


# MWA 서버를 실행한다.
[root@localhost ~]$ sudo service machbased MWA start
SERVER ALREADY STARTED
Connection URL : http://192.168.0.10:5001

# MWA 서버를 종료한다.
[root@localhost ~]$ sudo service machbased MWA stop
SERVER STOPPED


# MWA 서버 포트를 변경한다.
[root@localhost ~]$ sudo service machbased MWA port 5050
WEBSERVER PORT CHANGED : 5050

# MWA 서버를 종료하고 재실행한다.
[root@localhost ~]$ sudo service machbased MWA restart
SERVER IS RESTARTING
SERVER STOPPED
SERVER STARTED, PID : 23810
     Connection URL : http://192.168.0.10:5001
[root@localhost ~]$

port

마크베이스 서버의 포트를 변경한다. 해당 명령어를 실행시 변경할 포트를 입력하면 해당 포트로 변경된다. 포트 변경 이후에는 마크베이스 서버를 재시작 하여야 적용이 된다.

Code Block
languagebash
[root@localhost ~]$ sudo service machbased port
The default port for the Machbase server is 5656. If you want to use 5656 as Machbase server port, press return key. Otherwise enter an alternative port here:
Use current port.
[root@localhost ~]$

collector

Machcollector 관련 명령어를 수행한다. machcollectoradmin 유틸리티에서 제공하는 최소한의 명령어를 제공한다.

Code Block
languagebash
[root@localhost ~]$ sudo service machbased collector
List of commands:
  * machbased collector start
    Machcollectormanager starts.
  * machbased collector stop
    Machcollectormanager shutdown.
  * machbased collector kill
    Terminate Machcollectormanager.
  * machbased collector destroy
    Destroy Machcollectormanager meta data.
  * machbased collector add_server
    Add an Machbase server to Machcollectormanager.
  * machbased collector port
    Change the default port. Now: 9999
[root@localhost ~]$