Installing as a Service
Currently, installing NiFi as a service is supported only for Linux and Mac OS X users. To install the application as a service, navigate to the installation directory in a Terminal window and execute the command bin/nifi.sh install
to install the service with the default name nifi
. To specify a custom name for the service, execute the command with an optional second argument that is the name of the service. For example, to install NiFi as a service with the name dataflow
, use the command bin/nifi.sh install dataflow
.
Once installed, the service can be started and stopped using the appropriate commands, such as sudo service nifi start
and sudo service nifi stop
. Additionally, the running status can be checked via sudo service nifi status
.