访问页面报错信息如下

原因分析
根据https://stackoverflow.com/questions/44378841/jenkins-detecting-more-than-one-instance的提示:
• Check if another java process is running which runs jenkins e.g. in unix using top
• If you're using tomcat, search for a second instance of tomcat having the jenkins.war exploded somewhere
• Could be helpful to just have one version of java installed
查看jenkins,怀疑可能是哪里启动了多个jenkins进程,发现有两个一模一样的jenkins进程,只是进程号不一样:
ps -ef | grep jenkins
发现确实有两个,其中有个java -jar jenkins.war的进行
kill -9 这个进程
service jenkins restart
重新访问,就好了。
本文介绍了解决Jenkins因多个实例同时运行导致的访问页面报错问题的方法。通过检查并终止多余的Jenkins进程,确保只有一个Jenkins实例运行,从而恢复正常访问。
1158

被折叠的 条评论
为什么被折叠?



