Jenkins Installation and configuration step by step ?
how to install & configure Jenkins
=========================
requirement: 1.OS -------amazon Linux
2.CPU & RAM--2CPU & 4GB RAM
instance family : t3.medium 0.0448USD/hour (use this one)
t2.medium 0.0496USD/hour (don't use it)
3.volume:30GB
4.JAVA SOFTWARE ---->17 or 21 (Pls take 21 version)
step1: create security group
ex: security group name : Jenkins
=========================
requirement: 1.OS -------amazon Linux
2.CPU & RAM--2CPU & 4GB RAM
instance family : t3.medium 0.0448USD/hour (use this one)
t2.medium 0.0496USD/hour (don't use it)
3.volume:30GB
4.JAVA SOFTWARE ---->17 or 21 (Pls take 21 version)
step1: create security group
ex: security group name : Jenkins
add 1st port:22
add 2nd port:8080
step2: create Linux Server & attach security group
step3: Login Linux Server
step4: install java 21
yum whatprovides java ---it displays all the java versions
now, select the java 21 and install it
step5: go to official Jenkins website
https://www.jenkins.io/doc/book/installing/linux/#red-hat-centos
step6:download Jenkins link
sudo wget -O /etc/yum.repos.d/jenkins.repo \
https://pkg.jenkins.io/redhat-stable/jenkins.repo
step7:import keys link
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
step8:install Jenkins software
yum install Jenkins -y
step9: check the jenkins version
jenkins --version
step10: yum update
step11: create user
useradd paparao
step12: modify sshd_config file
nano /etc/ssh/sshd_config
step13:restart service
systemctl restart sshd
step14:open sudoers file
visudo
press enter
paparao ALL=(ALL) NOPASSWD: ALL
step15: enable Jenkins & start Jenkins service
systemctl enable Jenkins
systemctl start Jenkins
systemctl status Jenkins
step16: open browser and paste Jenkins server public IP address
1.2.3.4:8080
press enter button
step17: unlock your Jenkins
to unlock Jenkins we must provide the password
but the password location is:
/var/lib/Jenkins/secrets/initial admin password
note: secrets and its files owner and group is jenkins only
its look like this
Jenkins Jenkins secrets
we have to change the ownership of the secrets folder and its files
chown -R paparao:paparao secrets
step18: switch to paparao user
just open secrets folder
and go to initial admin password file
and copy the password
go to browser paste the password
enter button
step19:jenkins is ready and install required plugins (connecting softwares)
step20:you will get the Jenkins dashboard
=====end=================================
add 2nd port:8080
step2: create Linux Server & attach security group
step3: Login Linux Server
step4: install java 21
yum whatprovides java ---it displays all the java versions
now, select the java 21 and install it
step5: go to official Jenkins website
https://www.jenkins.io/doc/book/installing/linux/#red-hat-centos
step6:download Jenkins link
sudo wget -O /etc/yum.repos.d/jenkins.repo \
https://pkg.jenkins.io/redhat-stable/jenkins.repo
step7:import keys link
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
step8:install Jenkins software
yum install Jenkins -y
step9: check the jenkins version
jenkins --version
step10: yum update
step11: create user
useradd paparao
step12: modify sshd_config file
nano /etc/ssh/sshd_config
step13:restart service
systemctl restart sshd
step14:open sudoers file
visudo
press enter
paparao ALL=(ALL) NOPASSWD: ALL
step15: enable Jenkins & start Jenkins service
systemctl enable Jenkins
systemctl start Jenkins
systemctl status Jenkins
step16: open browser and paste Jenkins server public IP address
1.2.3.4:8080
press enter button
step17: unlock your Jenkins
to unlock Jenkins we must provide the password
but the password location is:
/var/lib/Jenkins/secrets/initial admin password
note: secrets and its files owner and group is jenkins only
its look like this
Jenkins Jenkins secrets
we have to change the ownership of the secrets folder and its files
chown -R paparao:paparao secrets
step18: switch to paparao user
just open secrets folder
and go to initial admin password file
and copy the password
go to browser paste the password
enter button
step19:jenkins is ready and install required plugins (connecting softwares)
step20:you will get the Jenkins dashboard
=====end=================================
Comments
Post a Comment