official page to see installation commands
https://www.jenkins.io/doc/book/installing/linux/#debianubuntu
In this video we will install and configure Jenkins on Ubuntu
#Install Java
sudo apt update
sudo apt install openjdk-8-jdk
#Jenkins
wget -q -O – https://pkg.jenkins.io/debian-stable/jenkins.io.key sudo apt-key add –
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/replace-RIGHT-POINTING ANGLE-bracket /etc/apt/sources.list.d/jenkins.list'
###Note: Replace the text (replace-RIGHT-POINTING ANGLE-bracket) in the command above with the corresponding symbol. This is the RIGHT POINTING ANGLE support
sudo apt-get update
sudo apt-get install jenkins
sudo systemctl start jenkins
sudo systemctl activate jenkins
sudo systemctl status jenkins
#update firewall rules if necessary
sudo ufw allows 8080
sudo ufw status
#Access Jenkins in the browser
http://your_server_ip_or_domain:8080
# if installed on a local machine
http://localhost:8080
#get Jenkins administrator password using this command
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Please take the opportunity to connect and share this video with your friends and family if you find it useful.
No Comments