This document provides a step-by-step guide for installing Java and Jenkins on Ubuntu. It includes instructions for updating system packages, installing OpenJDK 21, adding the Jenkins repository, and starting the Jenkins service. Additionally, it covers optional firewall configuration and troubleshooting tips for installation issues.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
6 views2 pages
Install Jenkins Ubuntu
This document provides a step-by-step guide for installing Java and Jenkins on Ubuntu. It includes instructions for updating system packages, installing OpenJDK 21, adding the Jenkins repository, and starting the Jenkins service. Additionally, it covers optional firewall configuration and troubleshooting tips for installation issues.
sudo systemctl status jenkins (Ensure that Jenkins is running.)
Step 6: Configure Firewall (Optional)
sudo ufw allow 8080 sudo ufw enable sudo ufw status
Step 7: Access Jenkins
Open a web browser and go to: http://your-server-ip:8080 Get the initial admin password: sudo cat /var/lib/jenkins/secrets/initialAdminPassword Use the password to set up Jenkins.
Step 8: Verify Installation
java -version jenkins --version
Step 9: Troubleshooting If Jenkins does not install or start: sudo apt remove jenkins -y sudo apt install jenkins -y Check logs if needed: sudo journalctl -u jenkins --no-pager | tail -n 50