(1) 도커 인스턴스로 접속 (NEXUS가 실행되고 있는 호스트에서 실행)
docker exec -it -u 0 containerID bash
접속되면.. java 파일의 위치를 찾는다
find / -name java
그리고 명령어로 Orient DB콘솔로 접속
java -jar /opt/sonatype/nexus/lib/support/nexus-orient-console.jar
update user SET password="$shiro1$SHA-512$1024$NE+wqQq/TmjZMvfI7ENh/g==$V4yPw8T64UQ6GfJfxYq2hLsVrBY8D1v+bktfOxGdt4b/9BthpWPNUy/CBk6V9iA0nHpzYzJFWO8v/tZFtES8CA==" UPSERT WHERE id="admin"
그리고 컨테이너 restart
하면 된다..
일번적으로 이렇게 하면 Default 암호로 변경된다.
혹시 이래도 안되면
To reset the default security realms, enter this command at the karaf prompt:
delete from realm
그리고 컨테이너 restart
하면 된다..
혹시 이래도 안되면
- Optional, if the admin user is missing the "nx-admin" role:
Check to see what roles the "admin" user has assigned to them:
select * from user_role_mapping where userID = "admin"
If they are missing "nx-admin" use this command at the karaf prompt to fix:
update user_role_mapping set roles = ["nx-admin"] where userID = "admin"
- Optional, check to see if the admin user is active:
Check to see if the "admin" user is active:
select status from user where id = "admin"
If they are not active, use this to make them active:
update user set status="active" upsert where id="admin"
To end the console session gracefully type "exit".
- Start Nexus again using
./bin/nexus start
or your regular service control command.
'나는 노동자 > ECO SW' 카테고리의 다른 글
docker-prometheus install (1) | 2018.08.10 |
---|---|
프로메테우스 데몬 api로 재시작없이 reload하기 (0) | 2018.07.13 |
Grafana - anonymous login (without pw) (0) | 2018.04.13 |
NEXUS 3.7.X SSL 설정 (0) | 2018.03.29 |