==Jenkins installation on UBUNTU==
- vi demo.sh
- #!/bin/bash
- apt update -y
- curl -fsSL https://pkg.jenkins.io/debian-stable/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-stable binary/ | sudo tee \
- /etc/apt/sources.list.d/jenkins.list > /dev/null
- apt install openjdk-11-jdk -y
- apt-get update -y
- apt-get install fontconfig openjdk-11-jre -y
- apt-get install jenkins -y
- apt install net-tools -y
- netstat -lntp
- sh demo.sh
==Jenkins installation on CentOS==
vi demo.sh
- #!/bin/bash
- yum update -y
- yum install java-11-openjdk-devel -y
- yum install wget -y
- 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.key
- yum update -y
- yum install fontconfig openjdk-11-jre -y
- yum install jenkins -y
- netstat -lntp
- systemctl status jenkins
- systemctl restart jenkins
- netstat -lntp
sh demo.sh
No comments:
Post a Comment