nifi下载Win版本安装成功运行
一、Apache nifi相关网址
https://nifi.apache.org/ 官网
https://nifi.apache.org/docs.html 文档
https://nifi.apache.org/download.html 下载页
## 二、Apache nifi本地安装
进入https://nifi.apache.org/download.html
解压到本地
bin目录下有启动和停止的脚本:
- run-nifi.bat 是启动,在窗口按下ctrl+c就可以停止(不规范停止不能杀死后台进程,会导致再启动闪退,只能重启或杀进程)
- dump-nifi.bat是停止 ,status-nifi.bat 是查看nifi进程
conf目录下是一些相关的配置文件:
- nifi-properties 文件,这个文件就是整个nifi的配置中心,里面包含很多的基本配置,例如启动端口啊、内存分配啊等等
logs目录下可以查看相关的日志:
- nifi-app.log 整个应用的运行日志
- nifi-bootstrap.log 底层类加载一系列的日志
- nifi-user.log 简单理解为用户的访问操作日志
本地启动成功
新版本和csdn上介绍的老版本不一样,不需要修改配置文件,修改了会出问题,运行不起来自动退出!!!
我电脑win10,jdk11,测试了 nifi-1.18.0 和 nifi-1.23.2 ,下载解压后,直接双击 run-nifi.bat 启动,就OK了。

打开浏览器,访问 https://127.0.0.1:8443/nifi/login
,显示如下
如何找到自动生成的用户名和密码?
打开 logs 下的 nifi-app.log 文件,搜索 Generated Username,即可找到,如图
复制[]中的信息到登录页,即可登录成功。
修改用户名和密码
文档描述如下
启动的nifi窗口,不要关闭
执行命令(在bin目录下进入cmd,密码至少12个字符,不然要报错),如果报错,再试几次,如图则修改成功。
nifi.cmd set-single-user-credentials admin 123456123456
在nifi窗口输入ctrl + c,输入y,结束批处理。再重新双击run-nifi.bat
启动,密码才会生效。
**报错(以下都是解压后修改配置再启动造成的,先起起来不要改配置!!!,切记,出问题,直接删除文件夹,重新解压),起来后,有把握再修改配置**
优先看文档,出问题再百度
# 错误1:(文档中看到可能是jdk8的版本有点老,应该用新一点的JDK8就不会有这个问题,或者改设置应该也可以解决。我直接用JDK11就没有再报这个错误)
2023-10-13 09:37:34,363 INFO [main] org.apache.nifi.bootstrap.Command Failed to determine Process ID from [java.lang.ProcessImpl]: java.lang.Process.pid()
2023-10-13 09:37:34,363 WARN [main] org.apache.nifi.bootstrap.Command Launched Apache NiFi but could not determined the Process ID
# 错误2:用JDK11后报了以下错误,脚本运行一会儿后会闪退(应该是改配置的问题,启动成功界面和这个差不多)
2023-10-13 11:08:30,666 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read pid file C:\Users\11588\Desktop\project\nifi\NIFI-1~1.2\bin\..\run\nifi.pid; this may allows others to have access to the key needed to communicate with NiFi. Permissions should be changed so that only the owner can read this file
2023-10-13 11:08:30,671 WARN [main] org.apache.nifi.bootstrap.Command Failed to set permissions so that only the owner can read status file C:\Users\11588\Desktop\project\nifi\NIFI-1~1.2\bin\..\run\nifi.status; this may allows others to have access to the key needed to communicate with NiFi. Permissions should be changed so that only the owner can read this file
2023-10-13 11:08:30,679 INFO [main] org.apache.nifi.bootstrap.Command Launched Apache NiFi with Process ID 14108
## 三、参考文献
https://nifi.apache.org/
https://nifi.apache.org/docs.html
https://blog.csdn.net/weixin_51572314/article/details/130238756
https://blog.csdn.net/chenwewi520feng/article/details/130595158
本文来自博客园,作者:不要划水,转载请注明原文链接:https://www.cnblogs.com/shui-notes/p/17765386.html
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)