Install on Linux
Install on Linux
Start installing OMFLOW Server
OMFLOW Server pre-installation environment preparation,
This document is based on Ubuntu 20.04 and CentOS 8,
Python version 3.8.x is used as an example.
For other operating systems, please refer to the following preparation steps to complete the preparation.
The first step is to prepare the Python3 environment and OMFLOW package
Ubuntu essential package installation example
CentOS Python and necessary package installation examples
The second step is to install the web server Apache Server
Ubuntu installation Apache example
CentOS installation Apache example
The third step is to establish the Python execution environment of OMFLOW
The fourth step is to install the necessary Python packages.
Enter the virtual environment and install the required packages
If the Python version is not 3.8, please change 3.8 in the command to the version to use.
The fifth step is to unzip the omflow folder
Unzip /tmp/omflow.tar.gz
Rename the folder to server
The sixth step, database preparation
The default database is currently SQLite. If you want to choose another database, please refer to the website.
Linux installation library package comparison table:
####UBUNTU
MySQL |
apt update -y && apt upgrade -y apt -y install software-properties-common add-apt-repository 'deb http://archive.ubuntu.com/ubuntu bionic main' apt update -y apt install -y python-mysqldb apt install -y libmysqlclient -dev |
CentOS
SQLite |
dnf install -y sqlite |
If you want to choose another database, please create the database in advance to give corresponding permissions. The following libraries require the installation of additional packages (installed using pip)
Before installing the database package, please enter the virtual environment
source /opt/omflow/python/bin/activate
Necessary package comparison table:
PostgreSQL | Oracle | SQL Server | MySQL |
---|---|---|---|
psycopg2-binary | cx_Oracle | django-mssql | pymysql |
django-pytds | mysqlclient | ||
django-sqlserver | |||
django-pyodbc |
Change the /opt/omflow/server/omflow/settings.py file The following is an example of settings.py modification
SQLite
PostgreSQL
MySQL
Oracle
SQL Server
The seventh step is to execute the omflow_config.sh file
Enter the /opt/omflow/server folder
If the Python version is not 3.8, please modify 3.8 to the version used in /etc/apache2/sites-available/django.conf
Step 8, select the type as server
omflow type: server
Execution example
django.conf configuration file
The executable file has helped you copy django.conf (apache configuration file) to the apache folder You can use the command to view
Ubuntu view
CentOS View
Ubuntu enables django.conf configuration file
Ubuntu disable apache default file
Step 9, omflow_server service
Start the omflow_server service
Disable omflow_server service
Confirm omflow_server service status
Step 10, start using OMFLOW
Start installing OMFLOW Collector
The first step is to prepare the Python3 environment
Ubuntu installation example
CentOS installation example
The second step is to establish the Python execution environment of OMFLOW
If the virtual environment cannot be established, install the package
apt-get install python3-venv
The third step is to install the necessary OMFLOW packages.
Enter the virtual environment and install the required packages
Other non-essential kits vary depending on the actual use of the Collector. You can go to the [Data Collection>Collector Kit] chapter for instructions.
The fourth step is to unzip the omflow folder
Unzip /tmp/omflow.tar.gz
Rename the folder to collector
The fifth step is to execute the omflow_config.sh file
Enter the /opt/omflow/collector folder
Step six, select collector as the type
omflow type: collector
Step 7: Enter required information
This step will change /opt/omflow/collector/omflow/settings.py
Collector IP: local IP
Collector port: 5168
Server IP: OMFLOWserver IP
Server port: OMFLOWserver port
Server protocol: OMFLOW server protocol
Step 8, omflow_collecter service
Start the omflow_collector service
Stop the omflow_collector service
Confirm omflow_collector service status
Start installing OMFLOW Patch
The first step is to decompress the Patch file.
The second step is to execute patch.sh
Last updated