Install from rpm packages

Machbase supports automatic installation on the types of Linux. This whole package contains MWA(Machbase Web Analytics) as well.

List of Contents

Environment Settings

It sets the execution path and dynamic library. In the case of bash, put the script below in the /root/.bashrc file as follows.

export MACHBASE_HOME=/opt/machbase/current
export PATH=$MACHBASE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$MACHBASE_HOME/lib:$LID_LIBRARY_PATH

The changes will be applied by using the following command:

cd /root
source .bashrc

Installation

For the RedHat/CentOS, Machbase can be installed using rpm. Download the installation file and install it using the commands as shown below.

sudo yum install machbase-std-3.5.0.826b8f2.official-LINUX-X86-64-release.rpm
--> Package machbase.x86_64 0:3.5.0.826b8f2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================
 Package                      Arch                     Version                          Repository                                                                     Size
====================================================================================================================================================================
Installing:
 machbase                   x86_64                   3.5.0.826b8f2                    /machbase-std-3.5.0.826b8f2.official-LINUX-X86-64-release                   299 M

Transaction Summary
===============================================================================================
Install       1 Package(s)

Total size: 299 M
Installed size: 299 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : machbase-3.5.0.826b8f2.x86_64

Create database
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 3.5.0.826b8f2.official
     Copyright 2014, Machbase Inc. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
Database created successfully.


Ulimit check
65535 PASS


Machbase startup
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 3.5.0.826b8f2.official
     Copyright 2014, Machbase Inc. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 3.5.0.826b8f2.official
     Copyright 2014, Machbase Inc. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
Waiting for Machbase server start.
Machbase server started successfully.



Machcollectormanager startup
-----------------------------------------------------------------
     Machcollector administration tool
     Release Version - 3.5.0.826b8f2.official
     Copyright 2014, Machbase Inc. or its subsidiaries
     All Rights Reserved.
-----------------------------------------------------------------
Waiting for collectormanager start.
.Collectormanager started successfully.



MWA startup
SERVER HAS BEEN RESET
SERVER STARTED, PID : 30876
     Connection URL : http://192.168.0.100: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
  Verifying  : machbase-3.5.0.826b8f2.x86_64

Installed:
  machbase.x86_64 0:3.5.0.826b2f2


Complete!

Once it is installed, "/opt/machbase" folder will be created and the default port is set to 5656.
Then, a database will be created, and the server will start automatically.

mach@localhost:~$ ls -al /opt/ |grep machbase
drwxr-xr-x   3 machbase machbase 4096 Nov  3 14:16 machbase

Inside of Machbase, there are two directories. In the "current" directory, it has the latest symbolic link. And all the versions of Machbase can be found in the "versions" directory as shown below.

mach@localhost:~$ ls -al /opt/machbase
total 12
drwxr-xr-x  3 machbase machbase 4096 Nov  3 14:16 .
drwxr-xr-x. 7 root       root       4096 Nov  2 16:26 ..
lrwxrwxrwx  1 root       root         30 Nov  3 14:16 current -> /opt/machbase/versions/3.5.0
drwxr-xr-x  3 machbase machbase 4096 Nov  3 09:51 versions
mach@localhost:~$ ls -al /opt/machbase/versions/
total 12
drwxr-xr-x  3 machbase machbase 4096 Nov  3 09:51 .
drwxr-xr-x  3 machbase machbase 4096 Nov  3 14:16 ..
drwxr-xr-x 15 machbase machbase 4096 Nov  3 14:16 3.5.0
mach@localhost:~$ ls -al /opt/machbase/versions/3.5.0/
total 60
drwxr-xr-x 15 machbase machbase 4096 Nov  3 14:16 .
drwxr-xr-x  3 machbase machbase 4096 Nov  3 09:51 ..
drwxr-xr-x  6 machbase machbase 4096 Nov  3 14:16 3rd-party
drwxr-xr-x  2 machbase machbase 4096 Nov  3 14:16 bin
drwxr-xr-x  4 machbase machbase 4096 Nov  3 14:16 collector
drwxr-xr-x  2 machbase machbase 4096 Nov  3 14:17 conf
drwxr-xr-x  3 machbase machbase 4096 Nov  3 14:17 dbs
drwxr-xr-x  3 machbase machbase 4096 Nov  3 14:16 doc
drwxr-xr-x  2 machbase machbase 4096 Nov  3 14:16 include
drwxr-xr-x  2 machbase machbase 4096 Nov  3 14:16 install
drwxr-xr-x  2 machbase machbase 4096 Nov  3 14:16 lib
drwxr-xr-x  2 machbase machbase 4096 Nov  3 14:16 meta
drwxr-xr-x  8 machbase machbase 4096 Nov  3 14:16 sample
drwxr-xr-x  2 machbase machbase 4096 Nov  3 09:51 trc
drwxr-xr-x  3 machbase machbase 4096 Nov  3 09:51 webadmin

Un-installation

Users can delete the program by using REMOVE command. If the program is deleted, the database that is in the current version will be deleted as well.

sudo yum remove machbase

Start-up

In the "/etc/init.d", the shell script "machbased" is installed. With this shell script, users can easily use the installed machbase.

mach@localhost:~$ ls -al /etc/init.d/ |grep 
mach
base
d

-rwxr-xr-x   1 root root  4042 Nov  3 09:51 
mach
base
d

With this shell script, install machbase by using rpm package, and then, it is easy to use features of machbase. machbased provides basic features of machbase as shown below.

service machbased {start | stop | kill | createdb | destorydb | status | web | console | port | exe | help}

Start

It starts the server and is the same feature with "machadmin -u".

[mach@localhost ~]$ sudo service machbased start
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 3.5.0.826b8f2.official 
     Copyright 2014, Machbase Inc. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
Waiting for Machbase start.
Startup completed.
[mach@localhost ~]$

Stop

It stops the server and is the same feature with "machadmin -s".

[mach@localhost ~]$ sudo service machbased stop
[sudo] password for mach: 
-----------------------------------------------------------------
     Machbase Administration Tool
     Release Version - 3.5.0.826b8f2.official 
     Copyright 2014, Machbase Inc. or its subsidiaries
     All Rights Reserved
-----------------------------------------------------------------
Waiting for shut down server...
Server shut down successfully.
[mach@localhost ~]$

results matching ""

    No results matching ""