参考链接:https://www.cnblogs.com/forever521Lee/p/10919512.html
1、停止nexus运行
./nexus stop
2、进入nexus安装目录
3、执行命令
linux:
java -jar ./lib/support/nexus-orient-console.jar
4、进入数据库
connect plocal:../sonatype-work/nexus3/db/security admin admin
5、重置密码
update user SET password="$shiro1$SHA-512$1024$NE+wqQq/TmjZMvfI7ENh/g==$V4yPw8T64UQ6GfJfxYq2hLsVrBY8D1v+bktfOxGdt4b/9BthpWPNUy/CBk6V9iA0nHpzYzJFWO8v/tZFtES8CA==" UPSERT WHERE id="admin"
6、启动nexus服务
./nexus start