Minimum hardware requirements:
- 256 MB of RAM Enough for doing proof of concept (POC).
- 1 GB of drive space (although 10 GB is a recommended minimum if running Jenkins as a Docker container) Recommended hardware configuration for a small team:
- 4 GB+ of RAM.
- 50 GB+ of drive space. Software requirements:
- Jenkins require Java-11 or later versions.
- Open Port.No 8080 in EC2-security group. (8080 is Default port of Jenkins)
- instance-type: t2.micro
Go to Jenkins Download page:-https://www.jenkins.io/download/
Select Red Hat/Fedora/Alma/Rocky/CentOS
You will see following command
# Become a root
sudo su -
# Jenkins repo is added to yum.repos.d
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
# Import key from Jenkins
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
# Install Java-11
amazon-linux-extras install java-openjdk11 -y
# Install Jenkins
yum install jenkins -y
# Become a root, no need to execute if you are alread root.
sudo su -
# You can enable the Jenkins service to start at boot with the command:
systemctl enable jenkins
# You can start the Jenkins service with the command:
systemctl start jenkins
# You can check the status of the Jenkins service using the command:
systemctl status jenkins
http://<Public-IPv4-address>:8080/
cat /var/lib/jenkins/secrets/initialAdminPassword
# you will get the password.
Copy the Password and past in Web-Browser then press continue.
Go with Install Suggested Plugins.
Suggested Plugins will start downloading.
Fill the details and click save and continue.
Jenkins is ready click on start using Jenkins
Jenkins is successfully installed