sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \
https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt-get update
sudo apt-get install jenkins
After your installation Jenkins works on ‘localhost:8080’
You can use cat command or a text editor to see admin password (directory can be changed depending installation your way)
After you login and installed plugins you can create admin user
After you filled the form, you can change port and url of you Jenkins instance
And here we successfully installed Jenkins