1、下载Jenkins资源
1)官网:https://pkg.jenkins.io/debian-stable/
2)百度云:
链接:https://pan.baidu.com/s/1q1wWCaOKDPz0idWRxwqI-w
提取码:zywj
2、安装:
sudo dpkg -i jenkin_2.101_all.deb
安装过程容易出错的地方:
root@ubuntu:/home/jmh081701/Desktop# dpkg -i jenkins_2.101_all.deb
Selecting previously unselected package jenkins.
(Reading database ... 218333 files and directories currently installed.)
Preparing to unpack jenkins_2.101_all.deb ...
Unpacking jenkins (2.101) ...
dpkg: dependency problems prevent configuration of jenkins:
jenkins depends on daemon; however:
Package daemon is not installed.
dpkg: error processing package jenkins (--install):
dependency problems - leaving unconfigured
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
jenkins
解决办法:sudo apt-get -f install
3、启动:
cd /
/etc/init.d/jenkins restart
默认端口:8080