51Testing软件测试论坛
标题:
怎么在ubuntu下安装和启动jenkins
[打印本页]
作者:
司格特
时间:
2019-3-20 15:10
标题:
怎么在ubuntu下安装和启动jenkins
# 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
//修改路径
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
复制代码
作者:
Miss_love
时间:
2020-12-30 17:55
支持分享
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2