jdk安装 参考:https://www.linuxidc.com/Linux/2017-02/140908.htm
参考:http://www.cnblogs.com/ceshisanren/p/5639869.htm
Ubuntu安装包安装:
-
安装Jenkins:
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update -y
sudo apt-get install jenkins -y -
安装位置:
安装目录:/var/lib/jenkins
日志目录:/var/log/jenkins/jenkins.log -
启动停止服务:
sudo /etc/init.d/jenkins start
sudo /etc/init.d/jenkins stop -
访问jenkins:
http://本机IP:8080/