- Create Ubuntu VM using AWS EC2 (t2.medium)
- Enable 8080 Port Number in Security Group Inbound Rules
- Connect to VM using MobaXterm
sudo apt update
sudo apt install fontconfig openjdk-17-jre
java -version
curl -fsSL https://pkg.jenkins.io/debian/jenkins.io-2023.key | sudo tee \
/usr/share/keyrings/jenkins-keyring.asc > /dev/null
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
https://pkg.jenkins.io/debian binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt-get update
sudo apt-get install jenkins
sudo systemctl enable jenkins
sudo systemctl start jenkins
sudo systemctl status jenkins
http://public-ip:8080/
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
sudo nano /etc/sysconfig/jenkins
look for port 8080 and change to 8081
cat /etc/sysconfig/jenkins |grep JENKINS_PO
systemctl restart jenkins
systemctl start jenkins
systemctl status jenkins