jenkins忘记登录密码解决方法
Posted hbyang
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jenkins忘记登录密码解决方法相关的知识,希望对你有一定的参考价值。
第一步:修改配置文件
修改jenkins的配置文件,找到如下几行删除(删除前一定要备份)
<useSecurity>true</useSecurity>
<authorizationStategy class="hudson.sucrity.FullControlOnceLoggedInAuthorizationStrategy">
......
</authorizationStategy>
<securityRealm class="hudson.security.HudsonPrivateSecurityRealm">
<disableSignup>false</disableSignup>
..
</securityRealm>
第二步:重庆jenkins或者tomcat
[[email protected] ~]# /application/tomcat/bin/shutdown.sh
Using CATALINA_BASE: /application/tomcat
Using CATALINA_HOME: /application/tomcat
Using CATALINA_TMPDIR: /application/tomcat/temp
Using JRE_HOME: /application/jdk
Using CLASSPATH: /application/tomcat/bin/bootstrap.jar:/application/tomcat/bin/tomcat-juli.jar
[[email protected] ~]# /application/tomcat/bin/startup.sh
Using CATALINA_BASE: /application/tomcat
Using CATALINA_HOME: /application/tomcat
Using CATALINA_TMPDIR: /application/tomcat/temp
Using JRE_HOME: /application/jdk
Using CLASSPATH: /application/tomcat/bin/bootstrap.jar:/application/tomcat/bin/tomcat-juli.jar
Tomcat started.
访问测试
!--[if>!--[if>
以上是关于jenkins忘记登录密码解决方法的主要内容,如果未能解决你的问题,请参考以下文章