在centos中安裝jenkins
1)安裝目錄
pwd (/home/AAA)
2)檢查java是否安裝
[AAA@Centos_AAA jenkins]$ java -version
3)下載下傳jenkins
mkdir -p jenkins/jenkins_home
mkdir -p jenkins/jenkins_node
cd jenkins
4)啟動jenkins
start_jenkins.sh
#!/bin/bash
JENKINS_ROOT=/home/AAA/jenkins
export JENKINS_HOME=$JENKINS_ROOT/jenkins_home
java -jar $JENKINS_ROOT/jenkins.war --httpPort=8000
chmod a+x start_jenkins.sh
nohup ./start_jenkins.sh > jenkins.log 2>&1 &
5)通路jenkins:
在浏覽器中輸入http://192.168.0.120:8000
6)配置jenkins:
configure golbal security->enable security
jenkins own user database + enable users to sign up + anyone can do anythings
then signup one user(jenkins_aaa:0) and login
7)安裝jenkins plugins:
一開始在可選插件下面沒有任何的插件可以安裝,後來查了好多資料才發現在安裝插件的頁面的進階tab的右下角有個坑爹的按鈕(立即擷取)要點下。
本文轉自Tenderrain 51CTO部落格,原文連結:http://blog.51cto.com/tenderrain/1597390,如需轉載請自行聯系原作者