본문 바로가기

Linux

jenkins reset root password systemctl restart jenkins

320x100

jenkins reset root password

jenkins admin 계정 암호 리셋하는 방법이다.

# vi /var/lib/jenkins/config.xml

  <useSecurity>true</useSecurity>  이부분을

  <useSecurity> false </useSecurity> 로 수정해주자.

그리고 저장하고 나와서 서비스 재시작

# systemctl restart jenkins 

그러면 로그인 없이 접속이 가능하다.

사람항목에 들어가서

admin 계정을 삭제를 해주자

그리고 jenkins 관리에 들어가서

Security - Security 들어가자

맨위에 위와 같이 옵션을 수정을 하고 저장을 누르면

계정을 생성할 수 있다. 생성하면

성공이라고 뜨고

관리자 권한의 계정으로 로그인이 된것을 확인 할 수 있다.

320x100