赞
踩
Jenkins密码忘记分两种情况,
找回:直接找.jenkins/secrets/initialAdminPassword,安装初始密码保存在此文件中,具体路径因人而异,可使用find命令查找文件查看
<useSecurity>true</useSecurity>
<authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy">
<denyAnonymousReadAccess>true</denyAnonymousReadAccess>
</authorizationStrategy>
<securityRealm class="hudson.security.HudsonPrivateSecurityRealm">
<disableSignup>true</disableSignup>
<enableCaptcha>false</enableCaptcha>
</securityRealm>
给你们提供一个Jenkins启动脚本
#!/bin/bash
## java jenkins environment
export JENKINS_HOME=/home/software/jenkins/.jenkins
export JAVA_HOME=/usr/local/jdk1.8.0_161
export JRE_HOME=/usr/local/jdk1.8.0_161/jre
##config
port=9005
pid=.jenkins.pid
#start
nohup /usr/local/jdk1.8.0_161/bin/java -jar /home/software/jenkins/jenkins.war --httpPort=$port &
echo $! >$pid
CSDN_码404:Jenkins密码忘记重置方法
https://www.code404.icu/1506.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。