【ubuntu 18.04】安装jenkins

1. 安装jenkins

wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
# 第一次安装失败,需要修复一下相关依赖 sudo apt-get update --fix-missing sudo apt-get install jenkins sudo apt remove jenkins
# 启动失败,需要先安装Jre环境 sudo apt install openjdk-11-jre-headless java -version sudo apt-get install jenkins

2. 查看初始jenkins密码

cat /var/lib/jenkins/secrets/initialAdminPassword
sudo cat /var/lib/jenkins/secrets/initialAdminPassword

 3. 修改默认端口方法

 

上一篇:Photoshop布尔运算在绘制图标过程中的应用详细解析


下一篇:gdb使用