1.查看Java 是否安装
java -version
2.安装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
sudo apt-get install jenkins
3.将Jenkins的服务启动
sudo /etc/init.d/jenkins start
4.由于原来8080端口已经被占用,所有更改其端口为“8081”(修改两个配置文件)
A.修改/etc/init.d/jenkins 文件do_start函数的check_tcp_port命令,端口号从8080换成8081
B.修改/etc/default/jenkins 文件,将端口从8080更换成8081
5.再次启动服务
6.通过浏览器测试 http://servername or IP:8081
参考:
1.Installing Jenkins on Ubuntu
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu
http://blog.csdn.net/csfreebird/article/details/9033443
3.基于 Jenkins 快速搭建持续集成环境
http://www.ibm.com/developerworks/cn/java/j-lo-jenkins/
4. How to Install Oracle Java JDK on Ubuntu Linux: 17 Steps
http://www.wikihow.com/Install-Oracle-Java-JDK-on-Ubuntu-Linux
2014.05.13 By Jack.Mao
本文出自 “布衣鸟人——成长的记忆” 博客,请务必保留此出处http://jackmao90.blog.51cto.com/832047/1410784
Ubuntu 12.10 server 安装 Jenkins(搭建),布布扣,bubuko.com
Ubuntu 12.10 server 安装 Jenkins(搭建)
原文:http://jackmao90.blog.51cto.com/832047/1410784