# root
sudo 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
//修改路径
【怎么在ubuntu下安装和启动jenkins】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
推荐阅读
- c/c++|有感 Visual Studio 2015 RTM 简介 - 八年后回归 Dot Net,终于迎来了 Mvc 时代,盼走了 Web 窗体时代...
- C/C++|C/C++ basis 02
- Qt实战|Qt+OpenCV联合开发(二十一)--图像翻转与旋转
- Qt实战|Qt+OpenCV联合开发(十四)--图像感兴趣区域(ROI)的提取
- Qt实战|Qt+OpenCV联合开发(十三)--通道分离与合并
- opencv|Qt+OpenCV联合开发(十六)--图像几何形状绘制
- Qt实战|Qt+OpenCV联合开发(十七)--随机数与随机颜色
- SNAT的MASQUERADE地址选择与端口选择
- IPTABLES的连接跟踪与NAT分析
- IPVS分析