更新软件包列表 sudo apt-get update
由于jenkins使用的是java8, 默认如果版本不匹配,会出现jenkins.service - LSB: not Start Jenkins at boot time安装openjdk-8-jdk sudo apt-get install openjdk-8-jdk
查看java版本,看看是否安装成功:java -version 或 javac

sudo apt update
sudo apt install jenkins

如果出现类似
E: The repository 'http://pkg.jenkins.io/debian-stable binary/ Release' does not have a Release file.的错误,请执行
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9B7D32F2D50582E6

如果出现类似错误:The repository 'http://pkg.jenkins.io/debian-stable binary/ Release' no longer has a Release file => 修复:apt-get --auto-remove --purge dist-upgrade

访问 http://10.2.84.20:8080/

jenkins-start.png

jenkins-plugins.png

jenkins-install-start.png