It can be only used with MyPlatform, and can't be used alone.
-
Clone Repository
git clone https://github.com/leeyoshinari/collector_agent.git
-
Modify
config.conf
. Usually don't need to modify, unless you have special requirements. -
Package. Using
pyinstaller
to package python code.
- (1) Enter folder, run:
pyinstaller -F server.py -p write_database.py -p common.py -p __init__.py --hidden-import write_database --hidden-import common
- (2) Copy
config.conf
to thedist
folder, cmd:cp config.conf dist/
- (3) Enter
dist
folder, zip files, cmd:zip collector_agent.zip server config.conf
- (4) Upload zip file to MyPlatform
- (5) Deploy collector_agent
NOTE: For Linux Server, the executable file packaged on the server of the CentOS system X86 architecture can only run on the server of the CentOS system X86 architecture; servers of other system and architecture need to be repackaged.