Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 563 Bytes

File metadata and controls

24 lines (22 loc) · 563 Bytes
ec2-user
sudo su
yum update -y
hostnamectl set-hostname jenkins
bash
##Java installation
yum install java* -y
java --version
alternatives --config java               ## Using this command you can choose any version of Java
##jenkins installation
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
yum install jenkins -y
systemctl enable jenkins.service
systemctl start jenkins.service
systemctl status jenkins.service