通过tomcat启动的jenkins.war会在进程启动用户的家目录下生成配置目录
找到配置目录中的user目录找到你要重置用户的文件夹中的config.xml
修改密码值后重启tomcat即可,密码是加密过的使用下面加密串后在重置即可,进入Jenkins后通过web界面修改为你想要的密码即可
明文:111111
密文:#jbcrypt:$2a$10$DdaWzN64JgUtLdvxWIflcuQu2fgrrMSAMabF5TSrGK5nXitqK9ZMS
1 2 3 4 5 6 7
| [root@localhost admin_5460482101832250205] root 4834 1 3 09:54 pts/0 00:00:40 /opt/jdk1.8.0_131//bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-jenkins/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /opt/apache-tomcat-jenkins/bin/bootstrap.jar:/opt/apache-tomcat-jenkins/bin/tomcat-juli.jar -Dcatalina.base=/opt/apache-tomcat-jenkins -Dcatalina.home=/opt/apache-tomcat-jenkins -Djava.io.tmpdir=/opt/apache-tomcat-jenkins/temp org.apache.catalina.startup.Bootstrap start root 4953 4735 0 10:15 pts/0 00:00:00 grep --color=auto tomcat [root@localhost admin_5460482101832250205] /root/.jenkins/users/admin_5460482101832250205 [root@localhost admin_5460482101832250205] <passwordHash>#jbcrypt:$2a$10$DdaWzN64JgUtLdvxWIflcuQu2fgrrMSAMabF5TSrGK5nXitqK9ZMS</passwordHash>
|