jenkins安裝步驟以下:java
命令:yum -y list java* apache
yum -y install java-1.7.0-openjdk.x86_64 -------- 搭建jdk的環境vim
java 瀏覽器
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repomaven
wget http://pkg.jenkins-ci.org/redhat-stable/jenkins-2.7.3-1.1.noarch.rpmrest
yum -y install apache-mavenci
lsget
rpm -ivh jenkins-2.7.3-1.1.noarch.rpmjenkins
vim /etc/sysconfig/jenkins -------- 修改配置文件,默認端口爲8080,若是不衝突則不須要修改 it
service jenkins restart ----------啓動jenkins服務
vim /var/lib/jenkins/secrets/initialAdminPassword ----------查看jenkins密碼並複製
接下來在瀏覽器啓動端口服務,輸入jenkins密碼便可下載相關軟件包