赞
踩
备份原有配置
$ cp /var/lib/jenkins/config.xml /var/lib/jenkins/config.xml.back
修改配置文件
- vim /var/lib/jenkins/config.xml
- #true改为false
- <useSecurity>false</useSecurity>
重启jenkins
$ systemctl restart jenkins
转到 Jenkins UI(这次不会要求您提供任何凭据)并重置管理员密码:
导航至 "Manage Jenkins" -> "Security" -> "Configure Global Security" -> "Authentication"
选中"Security Realm" (例如 "Jenkins' own user database")并且点击"保存"
转到"People" -> 点击你想要修改密码的用户名(例如admin)-> "Configure" -> 输入一个新的密码在"Password"和"Confirm password"文本域中且点击"保存"
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。