标签:http io ar os sp for java on art
一、Java
>java
choose openjdk
>sudo apt-get install open......
>java -version
>javac
choose openjdk
>sudo apt-get install open......
>javac -version
找到java的安装目录 /usr/lib/jvm/java-1.6.0-openjdk
编辑 vi ~/.bashrc
最后添加上
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
执行: source ~/.bashrc
然后输入: echo $JAVA_HOME
因为环境变量中已经配置java javac 所以这里我们只配置JAVA_HOME和CLASSPATH就可以了
二、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.
Hudson on Ubuntu System JAVA_HOME
标签:http io ar os sp for java on art
原文地址:http://www.cnblogs.com/zhangningfengcnblogs/p/4155329.html