浏览器输入  http://192.168.100.100:8080 发现无法登录 那我们需要怎么获取密码重新登录呢?

1616380383745.jpg

去JENKINS_HOME/user/admin目录下找到config.xml文件

1616380562566.jpg

<hudson.security.HudsonPrivateSecurityRealm_-Details><passwordHash>#jbcrypt:$2a$10$tFlvqP57QdsnABEzbdwFI./CUBj4pcfB7St8U2lwEiEn42IGK8nf6</passwordHash>
</hudson.security.HudsonPrivateSecurityRealm_-Details>

1616380640242.jpg

修改标记的部分如下:

<hudson.security.HudsonPrivateSecurityRealm_-Details><passwordHash>#jbcrypt:$2a$10$DdaWzN64JgUtLdvxWIflcuQu2fgrrMSAMabF5TSrGK5nXitqK9ZMS</passwordHash>
</hudson.security.HudsonPrivateSecurityRealm_-Details>

重启启动 jenkins

1616380751604.jpg

输入账号和密码:

1616380877848.jpg

账号:admin

密码:111111

1616380977240.jpg