DEV Community

Nnamdi Kenneth Nwosu
Nnamdi Kenneth Nwosu

Posted on

Best Jenkins Installation Guide

After setting Up your ubuntu VM and SSH into it via mobaxterm.
You can click Here For Details on How To.

Step 1: Update Your System:

sudo apt update
sudo apt upgrade -y
Enter fullscreen mode Exit fullscreen mode

Step 2: Install Java:

sudo apt install openjdk-11-jdk -y
Enter fullscreen mode Exit fullscreen mode

Step 3: Add Jenkins Repository and Add the repository key:

wget -q -O - https://pkg.jenkins.io/debian/jenkins.io-2023.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
Enter fullscreen mode Exit fullscreen mode

Step 4: Install Jenkins:

sudo apt update
sudo apt install jenkins -y
Enter fullscreen mode Exit fullscreen mode

Step 5: Checking the Jenkins:

sudo systemctl start jenkins
sudo systemctl enable jenkins
sudo systemctl status jenkins
Enter fullscreen mode Exit fullscreen mode

Step 6: Access Your Jenkins:

your_server_ip:8080
Enter fullscreen mode Exit fullscreen mode

Step 7: Unlock Jenkins:
To unlock Jenkins, you need the initial admin password. Retrieve it by running:

sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Enter fullscreen mode Exit fullscreen mode

Thank You.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay