2. Installing DynFi® Manager on Ubuntu
Installing DynFi Manager on Premise in Ubuntu consist of a few easy steps.
Please make sure you have Java >= 11 installed in your system and MongoDB >= 3.4 available (can also be installed in your system).
2.1.1. Checking Java
In your Command Line Interface (CLI) or “terminal” run the following:
The expected output might look like this (yours might be different):
openjdk version "11.0.6" 2020-01-14 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.6+10) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.6+10, mixed mode)
If systems responds with something similar to:
bash: /usr/bin/java: No such file or directory
it means that Java is not installed in your system.
There are many ways to install Java 11 in your operating system. One of them is to install OpenJDK:
sudo apt-get install openjdk-11-jre-headless
It is also possible to install AdoptOpenJDK from https://adoptopenjdk.net/.
2.1.2. Checking MongoDB
To run DynFi Manager requires MongoDB as well. It can be installed on the same machine where DynFi Manager runs or it can be on another host available in your network.
If you would like to install MongoDB on your host, you can follow this tutorial.
You can connect to your MongoDB to check its version like this:
mongo --eval "db.version()"
Make sure that the line
MongoDB server version shows at least version 3.4. The output might look like this:
MongoDB shell version v3.4.6 connecting to: mongodb://127.0.0.1:27017 MongoDB server version: 3.4.6 3.4.6
2.2. Installing DynFi Manager using APT repository
Once you have Java 11 working in your system and MongoDB accessible in your network (installed at the shame host for example), you can install DynFi Manager using these simple commands:
wget -q -O - http://archive.dynfi.com/dynfi.gpg | sudo apt-key add - echo "deb http://archive.dynfi.com/ubuntu `lsb_release -cs` main" | sudo tee /etc/apt/sources.list.d/dynfi.list sudo apt-get update sudo apt-get install -y dynfi
During the installation you will see a configuration wizard which will guide you through creating default config file
/etc/dynfi.conf with basic settings. (Refer to Configuration for more details.)
Selecting <Save> button will finish the installation process and start DynFi Manager at selected IP and port.
If you do not see the wizard, then you do not have Java >= 11 installed properly.
Now you can configure your DynFi Manager if needed (see Configuration chapter) and enjoy your DynFi Manager (see First steps with DynFi® Manager chapter). In case of need for some troubleshooting you can read the Logs chapter.
2.3. Upgrading DynFi Manager
If you have installed DynFi Manager using the above procedure, it will be upgraded along with any other packages when you decide to update your Operating System.
If you wish to upgrade DynFi Manager only, this is possible with:
sudo apt-get update && sudo apt-get install -y dynfi