Step-by-step guide to install Jenkins, covering both Linux and Windows system

Jenkins Installation Steps:

Install Jenkins on Linux (Ubuntu/Debian-based):

# 1. Update system
sudo apt update

# 2. Install Java (Jenkins requires Java 11+)
sudo apt install openjdk-11-jdk -y

# 3. Add Jenkins repo and key
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'

# 4. Install Jenkins
sudo apt update
sudo apt install jenkins -y

# 5. Start and enable Jenkins
sudo systemctl start jenkins
sudo systemctl enable jenkins

# 6. Check Jenkins status
sudo systemctl status jenkins


Get initial admin password:

sudo cat /var/lib/jenkins/secrets/initialAdminPassword

Access Jenkins:

Go to http://<your-server-ip>:8080

Use the above password to unlock Jenkins.

Install Jenkins on Windows:

Download Jenkins Windows Installer:

Go to https://www.jenkins.io/download/ and select Windows.

Download the .msi installer.

Run the Installer:

Double-click the installer and follow the wizard.

It installs Jenkins as a Windows service.

Get Initial Password:

Check: C:\Program Files (x86)\Jenkins\secrets\initialAdminPassword

Launch Jenkins in Browser:

Open http://localhost:8080

Enter the initial admin password

Create Admin User and complete the setup.




Comments

Popular posts from this blog

Interview question for File and FTP Adapter

What is boot.properties file and how to create

SSL Exceptions in Admin Server and Node Manager.