Once installed, Jenkins is opened in the browser using: publicIP:8080
Default Jenkins install path: /var/lib/jenkins
amazon-linux-extras install java-openjdk11 -y
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
yum install jenkins -y
systemctl status jenkins # shows inactive/dead initially
systemctl start jenkins # or: systemctl restart jenkins
Doing this manual setup every time is time-consuming. Instead, put all the commands into a shell script:
vim jenkins.sh # add all installation commands, then :wq
Give it executable permission and run it:
chmod +x jenkins.sh
./jenkins.sh # or: sh jenkins.sh
Hands-on live training, real projects, and placement support — become job-ready in DevOps.
Enroll in DevOps Training →