maven私有仓库nexus2如何找回用户的登录密码

一、nexus2的部署

下载nexus-2.14.2-01-bundle.tar.gz并解压至nexus-2.14.2-01,
在这里插入图片描述
启动nexus进程,注意切换到nexus用户。

sudo -u nexus sh bin/nexus start

在这里插入图片描述

查看进程

ps -ef | grep nexus
在这里插入图片描述
nexus默认端口是8081,但是刚启动的时候,程序并未完成端口监听。

需要你耐心等待一分钟左右,直到8081在下面的窗口里出现后。

在这里插入图片描述

二、访问nexus

1、访问地址

http://{ip}:8081/nexus
在这里插入图片描述
在这里插入图片描述
至于为什么需要加上/nexus,见配置文件conf/nexus.properties

# Jetty section
# 访问端口
application-port=8081
application-host=0.0.0.0
nexus-webapp=${bundleBasedir}/nexus

# context-path,在访问nexus的时候,需要加/nexus前缀
nexus-webapp-context-path=/nexus

在这里插入图片描述

2、nexus工作目录

nexus工作目录sonatype-work 和 nexus-2.14.2-01在同一级路径。
在这里插入图片描述
现在回到本文的目标,需要找回admin用户的密码,它是在sonatype-work/nexus/conf目录下。
见文件security.xml。

找到对应的用户ID

    <user>
      <id>deployment</id>
      <firstName>Deployment</firstName>
      <lastName>User</lastName>
      <password>b2a0e378437817cebdf753d7dff3dd75483af9e0</password>
      <status>active</status>
      <email>changeme1@yourcompany.com</email>
    </user>

这里的password是md5后的密文,所以你需找一个在线解密md5的网站,破解它。

登录后,password值的格式将发生变化,如下:

在这里插入图片描述

  • 8
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

天草二十六_简村人

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值