Make use of the open sourced wrapper
https://github.com/kohsuke/winsw/blob/master/doc/installation.md
Prepare Nifi windows server
- Make sure JDK 1.8 above is installed on the windows server and in the class path running the service. If not, change the bootstrap.properties to point to correct JDK.
At current stage, JRE is not tested
- Here’s an example of config nifi.xml ,put the file under nifi root folder,
1 | <service> |
-
Put the winsw-2.1.0-bin.exe under the folder of nifi root folder, change the name to nifi.exe
-
Use windows shell command line , run nifi.exe install to install the service
1 | nifi.exe install |