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.
3 Answers
If you have not set jenkins initial credential then it will be
- username:
admin - password: Go to your
.jenkins/secrets/initialAdminPasswordfor password.
If you use Ubuntu, you can find initialAdminPassword using sudo cat /var/lib/jenkins/secrets/initialAdminPassword
For all of you (like me) with jenkins.war under:
/var/lib/jenkins/but not:
/var/lib/jenkins/secrets/initialAdminPasswordYou have to start your jenkins server and then execute
sudo more /var/log/jenkins.logyou 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:
64876418716348764921649873214That's your password for user 'admin'.