Cov txheej txheem:

Lub neej ntawd lo lus zais rau Jenkins tus neeg siv yog dab tsi?
Lub neej ntawd lo lus zais rau Jenkins tus neeg siv yog dab tsi?

Video: Lub neej ntawd lo lus zais rau Jenkins tus neeg siv yog dab tsi?

Video: Lub neej ntawd lo lus zais rau Jenkins tus neeg siv yog dab tsi?
Video: Khuv xim txog hnub tuag kiag 1/30/2019 2024, Kaum ib hlis
Anonim

Thaum koj nruab cov jenkins ntawm koj lub tshuab hauv zos, lub ua ntej username yog admin thiab tus password nws tau txais kev sau cia.

Tsis tas li ntawd, dab tsi yog qhov default admin lo lus zais rau Jenkins?

Thawj zaug koj pib Jenkins , configuration yog tsim nrog rau cov tus thawj tswj hwm neeg siv thiab tus password . Cov default login yog admin / tus password . Cov default password tuaj yeem teeb tsa los ntawm kev teeb tsa JENKINS_PASSWORD ib puag ncig hloov pauv.

Tsis tas li ntawd, kuv yuav hloov tus neeg siv lub neej ntawd hauv Jenkins li cas? Rau hloov tus neeg siv jenkins , qhib qhov /etc/sysconfig/ cov jenkins (hauv debian cov ntaub ntawv no yog tsim hauv /etc/ ua ntej ) thiab hloov JENKINS_USER rau txhua yam koj xav tau. Nco ntsoov tias neeg siv muaj nyob rau hauv qhov system (koj tuaj yeem tshawb xyuas qhov neeg siv hauv /etc/passwd file).

Ntawm no, kuv yuav nrhiav tau kuv tus password Jenkins li cas?

1 Teb

  1. Rau qhov no Username yog admin. Tus password yuav tsum nyob hauv: $JENKINS_HOME/secrets/initialAdminPassword.
  2. Koj tuaj yeem saib tus password siv: miv /var/lib/jenkins/secrets/initialAdminPassword.
  3. miv $JENKINS_HOME/secrets/initialAdminPassword.

Kuv yuav rov pib dua kuv tus password Jenkins admin li cas?

Yuav Ua Li Cas Reset Jenkins Admin cov neeg siv Password

  1. Thawj kauj ruam yog noj SSH rau hauv Jenkins virtual tshuab (Ntawm no piv txwv kuv siv Linux).
  2. Cov lus txib no yuav qhib config.
  3. Mus rau tag thiab kos tus nqi, nws yuav muaj tseeb.
  4. Txuag cov ntaub ntawv no thiab tawm ntawm cov ntaub ntawv.
  5. Tom qab rov pib Jenkins cov kev pabcuam, ua rau cov neeg siv nws cov xwm txheej yog 'active {running}'.
  6. Tam sim no, Rho tawm cov neeg siv admin qub.

Pom zoo: