What is the default Jenkins password?

前端 未结 19 2097
情话喂你
情话喂你 2020-12-01 04:11

I\'m using a EC2 server instance. Used the following to install Jenkins:

wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add          


        
相关标签:
19条回答
  • 2020-12-01 04:32

    Here is how you can fix it:

    • Stop Jenkins
    • Go go edit /var/lib/jenkins/config.xml
    • Change <useSecurity>true</useSecurity> to false
    • Restart Jenkins: sudo service jenkins restart
    • Navigate to the Jenkins dashboard to the "Configure Security" option you likely used before. This time, setup security the same as before, BUT set it to allow anyone to do anything, and allow user signup.
    • Go to www.yoursite.com/securityRealm/addUser and create a user
    • Then go change allow anyone to do anything to whatever you actually want users to be able to do. In my case, it is allow logged in users to do anything.
    0 讨论(0)
  • 2020-12-01 04:32

    Before installing jenkins, create a user named jenkins and set password there. Then after installing jenkins you can use the password you created.

    0 讨论(0)
  • 2020-12-01 04:32

    You can always disable security, then go in and re-enable it with the settings you want.

    0 讨论(0)
  • 2020-12-01 04:35

    I don't believe that the Jenkins user that is installed via apt has a password. If it does, I have never seen documentation. Based on the commands you entered, I am guessing you are using a Debian distro?

    Is there any particular reason you must use the jenkins user to do the install instead of the user which was set up when you created your instance?

    0 讨论(0)
  • 2020-12-01 04:35

    When you install jenkins on your local machine, the default username is admin and password it gets automatically filled.

    0 讨论(0)
  • 2020-12-01 04:37

    The password is present in the log generated by docker run image as shown in the example below.

    Jenkins Docker run log

    Additionally you can check the directory /var/jenkins_home/secrets/ Its in the file name initialAdminPassword

    You can use cat /var/jenkins_home/secrets/initialAdminPassword to read it.

    0 讨论(0)
提交回复
热议问题