Installing and Upgrading NiFi
Also available as:
PDF

Starting and Stopping NiFi

Once you have downloaded and installed NiFi, you can start it by using the command appropriate for how you want to interact with NiFi. You can start NiFi in the foreground, background, or as a service.

Starting NiFi in the foreground:

Starting NiFi in the foreground will leave the application running until you press Ctrl-C. At that time, it will initiate shutdown of the application.

  1. From a terminal window, navigate to the NiFi installation directory.

  2. Enter:

    bin/nifi.sh run

Starting NiFi in the background:

If you start NiFi in the background, to check the status and see if NiFi is currently running, execute the command /bin/nifi.sh status. To shut down NiFi, execute the command bin/nifi.sh stop.

  1. From a terminal window, navigate to the NiFi installation directory.

  2. Enter:

    bin/nifi.sh start

Starting NiFi as a service:

Once installed, you can start and stop the NiFi service by using the appropriate commands, such as sudo service nifi start and sudo service nifi stop. Additionally, you can check the running status with sudo service nifi status.

  1. From a terminal window, enter:

    sudo service nifi start