I have recently installed Jenkins on private server. Now when I have rebooted the server, it is asking for username and password. But, I have not given any such credentials. I have turned disable signup to false from true, but I am not able to restart my Jenkins as it is showing service not recognized.
Asked
Active
Viewed 1.7e+01k times
3 Answers
17
If you have not set jenkins initial credential then it will be
- username:
admin - password: Go to your
.jenkins/secrets/initialAdminPasswordfor password.
muru
- 207,228
Suman Lama
- 171
7
If you use Ubuntu, you can find initialAdminPassword using sudo cat /var/lib/jenkins/secrets/initialAdminPassword
MRWBSN
- 71
1
For all of you (like me) with jenkins.war under:
/var/lib/jenkins/
but not:
/var/lib/jenkins/secrets/initialAdminPassword
You have to start your jenkins server and then execute
sudo more /var/log/jenkins.log
you will see something like
*************************************************************
*************************************************************
*************************************************************
Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:
64876418716348764921649873214
That's your password for user 'admin'.
Michal Rorat
- 111