320x100
320x100
sudo -s
apt-get update
apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
apt-get update


sudo apt install openjdk-8-jdk           # choose this or next line
sudo apt install openjdk-11-jre-headless # or Install Java 11 JDK/JRE


wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add
sudo bash -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt update
sudo apt-get install jenkins



sudo ufw enable
sudo ufw allow 10260 # whatever port number you like

sudo ufw status

sudo service jenkins start

 

 

 

우분투 환경에서 Jenkins 포트 변경

: vi /etc/default/jenkins 

: service jenkins restart

 

 

 

세팅 이후 젠킨스 세팅

: localhost:젠킨스포트 접속 후 설정

 

 

 

 

Refference

 

🌟Install Jenkins in Windows Subsystem for Linux (WSL2)

Jenkins Jenkins is one of the most popular tools DevOps tools, originally designed with on...

dev.to

 

300x250
728x90