ubuntu安装 jenkins

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

apt-get install openjdk-17-jre
apt-get install jenkins

# 可以修改配置
vim /lib/systemd/system/jenkins.service

systemctl start jenkins

# 密码
cat /var/lib/jenkins/secrets/initialAdminPassword

你可能感兴趣的:(项目管理,ubuntu,jenkins,linux)