访问页面报错信息如下
原因分析
根据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
重新访问,就好了。