当在 Nexus 2 docker 镜像中启动时 (https://hub.docker.com/r/sonatype/nexus/ https://hub.docker.com/r/sonatype/nexus/)如何配置它以将默认管理员用户密码更改为 admin/admin123 以外的其他密码?
thanks.
@Zeitounator,
感谢您的回答,但事实上我确实设法更改了管理员密码。
在 docker 映像中,您需要更新 /sonatype-work/conf/security.xml 文件。
有一个管理部分,您需要在其中更改密码元素
<user>
<id>admin</id>
<firstName>Administrator</firstName>
<lastName>User</lastName>
<password>change_password_here</password>
<status>active</status>
<email>[email protected] /cdn-cgi/l/email-protection</email>
</user>
我正在使用 kubernetes 启动 Nexus,通过安装正确的文件,我能够更改密码。
为了生成密码,我使用了 shiro 工具 hasher cli :https://shiro.apache.org/command-line-hasher.html https://shiro.apache.org/command-line-hasher.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)