/
Collector Installation
Collector Installation
After decompressing the file, the following directory will be created.
[mach@localhost ~/mach_collector_home]$ ls -al total 60372 drwxrwxr-x 9 mach mach 4096 Jun 27 23:58 . drwx------ 20 mach mach 4096 Jun 27 23:40 .. drwxrwxr-x 2 mach mach 4096 Jun 27 23:31 bin drwxrwxr-x 6 mach mach 4096 Jun 27 23:31 collector drwxrwxr-x 2 mach mach 4096 Jun 27 23:31 conf drwxrwxr-x 2 mach mach 4096 Jun 27 23:31 doc -rw-r--r-- 1 mach mach 61783606 Jun 27 23:41 machcollector-x.x.x.official-LINUX-X86-64-release.tgz drwxrwxr-x 2 mach mach 4096 Jun 27 23:31 meta drwxrwxr-x 2 mach mach 4096 Jun 27 23:31 trc drwxrwxr-x 3 mach mach 4096 Jun 27 23:31 webadmin .. skip
Name of directory | Description |
---|---|
bin | Executable file |
collector | Configuration file example |
conf | Configuration file |
doc | License file |
lib | Library file |
msg | Message file |
webadmin | Python package |
Environment Variables Configuration
The executable, the shared object file, and the path environment variable need to be set.
export MACHBASE_COLLECTOR_HOME=/home/machbase/machbase_home export PATH=$MACHBASE_COLLECTOR_HOME/bin:$PATH export LD_LIBRARY_PATH=$MACHBASE_COLLECTOR_HOME/lib:$LD_LIBRARY_PATH export MACH_COLLECTOR_PORT=9999
To apply the above environment variable, execute the following command.
source .bashrc
If $MACHBASE_COLLECTOR_PORT
is not specified, the PORT_NO value of $MACH_COLLECTOR_HOME/conf/machcollector.conf
is used.