1.6 KiB
1.6 KiB
Installing Dragonfly Dfdaemon Server
This topic explains how to install the Dragonfly dfdaemon server.
Prerequisites
When deploying with physical machines, the following conditions must be met.
| Required Software | Version Limit |
|---|---|
| Git | 1.9.1+ |
| Golang | 1.12.x |
Procedure - When Deploying with Physical Machines
Get dfget executable file
-
Download a binary package of the dfget. You can download one of the latest builds for Dragonfly on the github releases page.
version=2.0.0 wget https://github.com/dragonflyoss/Dragonfly2/releases/download/v$version/Dragonfly2_$version_linux_amd64.tar.gz -
Unzip the package.
# Replace `xxx` with the installation directory. tar -zxf Dragonfly2_2.0.0_linux_amd64.tar.gz -C xxx -
Move the
dfgetto yourPATHenvironment variable to make sure you can directly usedfgetcommand.
Or you can build your own dfget executable file.
-
Obtain the source code of Dragonfly.
git clone https://github.com/dragonflyoss/Dragonfly2.git -
Enter the project directory.
cd Dragonfly2 -
Compile the source code.
make build-dfget && make install-dfget
Start dfdaemon
dfget daemon --options
After dfget is installed, run the following commands to
verify if dfdaemon is started,
and if Port 65000, 65001 and 65002 is available.
telnet 127.0.0.1 65000
telnet 127.0.0.1 65001
telnet 127.0.0.1 65002