参考:https://www.jenkins.io/zh/doc/book/installing/
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
启动:/etc/init.d/jenkins start
还有下面这些参数
配置文件所在地址:/etc/default/jenkins
启动之后会要我们输入本地密码
查看日志文件cat /var/log/jenkins/jenkins.log