jenkins第一次登陆密码

时间:2021-07-08 16:12:09


jdk+apache-tomcat+jenkins+maven搭建完成后第一次登陆,

  搭建jenkins请查看博客 http://12629984.blog.51cto.com/12619984/1980034

浏览器输入  http://192.168.112.143:8080/

jenkins第一次登陆密码

印象里在搭建jenkins的时候并没有设置密码这一项

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


<hudson.security.HudsonPrivateSecurityRealm_-Details>

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

修改后==》》

<hudson.security.HudsonPrivateSecurityRealm_-Details>

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

重启jenkins

[root@localhost admin]# service jenkins restart
Shutting down Jenkins                                      [FAILED]
Starting Jenkins                                           [  OK  ]


用户名:admin

密码:111111