您的位置:軟件測(cè)試 > 開源軟件測(cè)試 > 開源配置管理工具 > HUDSON
ubuntu系統(tǒng)下hudson的安裝及配置方法
作者:網(wǎng)絡(luò)轉(zhuǎn)載 發(fā)布時(shí)間:[ 2013/4/15 16:06:40 ] 推薦標(biāo)簽:

  添加partner源

  sudo add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner"

  (注: 如果系統(tǒng)提示沒有add-apt-repository命令,則需要先安裝python-software-properties,命令sudo apt-get install python-software-properties。另外,有些版本的ubuntu即使安裝了python-software-properties 也無add-apt-repository命令,此時(shí)需要手動(dòng)添加此行"debhttp://archive.canonical.com/ubuntu maverick partner"到/etc/apt/sources.list文件中。)

  更新系統(tǒng)

  sudo apt-get update

  安裝jre

  sudo apt-get install sun-java6-jre sun-java6-plugin

  安裝jdk

  sudo apt-get install sun-java6-jdk sun-java6-plugin

  查看版本信息

  java -version [編輯]設(shè)為默認(rèn)Javasudo update-alternatives --config java選擇即可[編輯]Oracle 官方bin安裝包

  此外可以用Linux上通用的bin包安裝,下載官方bin包,終端下面安裝解壓,然后修改環(huán)境變量指向那個(gè)jdk便可。

  設(shè)置環(huán)境變量,修改.bashrc或.profile,參考自己系統(tǒng)解壓的路徑改改。

  export JAVA_HOME=/home/user/jdk1.6.0_21/ export PATH=$JAVA_HOME/bin:$PATH export classPath=/home/user/jdk1.6.0_21/

  查看java版本

  qii@ubuntu:~$ java -version java version "1.6.0_21" Java(TM) SE Runtime Environment (build 1.6.0_21-b06) Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)

  http://sillycat.iteye.com/blog/982528

  Hudson on Ubuntu System(I)Install and configuration

  1. Install Hudson on my system

  I download the file from this URL:

  http://java.net/downloads/hudson/Debian/hudson-debian-2.1.2.deb

  Double click the file and install it.

  after the installation, you can check up the status with command:

  >/etc/init.d/hudson status

  start it/stop it

  >/etc/init.d/hudson start

  >/etc/init.d/hudson stop

  I can visit the URL http://localhost:8080/

  The log file exists here

  >vi /var/log/hudson/hudson.log

  we can see all the configurations in this file

  >vi /etc/default/hudson

  by the way, I change the port to 8082

  HTTP_PORT=8082

  right now, we can visit hudson with URL http://localhost:8082/

  2. configure Security

  click menu [Manage Hudson]

  click menu [Configure System]

  check [Enable security]

  TCP port for JNLP slave agents: Disable

  Access Control: Security Realm ----> Hudson's own user database

  Tuthorization ----> Matrix-based security -----> User/group to add: sillycat and admin

  click on the button [Save]

  create your account, for example admin and sillycat.

  references:

  http://hudson-ci.org/

  http://wiki.hudson-ci.org/display/HUDSON/Installing+Hudson+on+Ubuntu

  http://wiki.hudson-ci.org/display/HUDSON/Use+Hudson

  http://digitalsonic.iteye.com/blog/610401

  http://www.iteye.com/wiki/hudson_ci/1682-hudson-standard-security-settings

軟件測(cè)試工具 | 聯(lián)系我們 | 投訴建議 | 誠聘英才 | 申請(qǐng)使用列表 | 網(wǎng)站地圖
滬ICP備07036474 2003-2017 版權(quán)所有 上海澤眾軟件科技有限公司 Shanghai ZeZhong Software Co.,Ltd