一、进入容器
docker exec -i -t {container name/id} /bin/bash
二、打开用于连接数据库的库
cd /opt/sonatype/nexus java -jar ./lib/support/nexus-orient-console.jar
三、连接数据库
connect plocal:../sonatype-work/nexus3/db/security admin admin
四、重置密码 (重置为admin123)
update user SET password="$shiro1$SHA-512$1024$NE+wqQq/TmjZMvfI7ENh/g==$V4yPw8T64UQ6GfJfxYq2hLsVrBY8D1v+bktfOxGdt4b/9BthpWPNUy/CBk6V9iA0nHpzYzJFWO8v/tZFtES8CA==" UPSERT WHERE id="admin"
+ There are no comments
Add yours