怎么在ubuntu下安装和启动jenkins
# rootsudo chmod a+x jdk-6u45-linux-x64.bin
sudo ./jdk-6u45-linux-x64.bin
sudo groupadd jenkins //创建一个jenkins组
sudo useradd jenkins -d /home/jenkins -m -g jenkins -s /bin/bash//在jenkins组下创建一个jenkins用户
sudo passwd jenkins //修改jenkins用户的密码
# jenkins
su - jenkins
exit
//修改路径
sudo vim /etc/profile
# export JAVA_HOME=/opt/jdk1.6.0_45 //这个必须是jdk的绝对路径
# export CLASSPATH=.:$JAVA_HOME/lib/tools.jar
# export PATH=$JAVA_HOME/bin:$PATH
ssh-keygen
# jenkins
ssh-keygen
exit
cd /home/sequoiadb/.ssh
sudo cp id_rsa.pub /home/home/jenkins/.ssh/sequoiadb.pub
# jenkins
su - jenkins
cd /home/home/jenkins/.ssh
cat sequoiadb.pub > authorized_keys
rm sequoiadb.pub
exit
# root
ssh jenkins@localhost //用ssh连接主机
java -jar jenkins.war//打开jenkins
支持分享
页:
[1]