1.进入nexus目录
2.输入命令java -jar ./lib/support/nexus-orient-console.jar,进入OrientDB环境
3.输入指令connect plocal:../sonatype-work/nexus3/db/security admin admin 连接OrientDB库
4.输入指令update user SET password="$shiro1$SHA-512$1024$NE+wqQq/TmjZMvfI7ENh/g==$V4yPw8T64UQ6GfJfxYq2hLsVrBY8D1v+bktfOxGdt4b/9BthpWPNUy/CBk6V9iA0nHpzYzJFWO8v/tZFtES8CA==" UPSERT WHERE id="admin" 重置密码
5.重启nexus服务即可完成重置