- 关闭jenkins服务
systemctl stop jenkins
- 修改config.xml
#修改时做好备份
cp /var/lib/jenkins/config.xml /var/lib/jenkins/config.xml.bak
vim /var/lib/jenkins/config.xml
修改第10行 <useSecurity>true</useSecurity> 修改为:<useSecurity>false</useSecurity>
删除这两个标签及标签内的所有内容 <authorizationStrategy …/>和<securityRealm …>到</securityRealm>
- 重启jenkins
systemctl restart jenkins