Please wait while Jenkins is getting ready to work ...
程序员文章站
2022-07-11 10:39:09
...
Please wait while Jenkins is getting ready to work …
在Linux在安装好了Jenkins之后,访问Jenkins,一直出现Please wait while Jenkins is getting ready to work …,打开F12控制台发现一直报错如下:ERROR 503: Service Unavailable.
解决方案如下:
进入Jenkins的工作目录(/var/lib/jenkins),编辑hudson.model.UpdateCenter.xml文件
完整命令:
vi /var/lib/jenkins/hudson.model.UpdateCenter.xml
将https://updates.jenkins.io/update-center.json
修改为http://mirror.xmission.com/jenkins/updates/update-center.json
如下图所示:
保存后重启Jenkins
systemctl restart jenkins
再次访问,就会出现如下界面:
大功告成!
顺便提一句:Jenkinx的密码保存在/var/lib/jenkins/secrets/initialAdminPassword
该文件中,只需要编辑或查看此文件就可以获取密码
cat /var/lib/jenkins/secrets/initialAdminPassword