ubuntu安装jenkins排坑历程

ubuntu安装jenkins排坑历程

1、安装java
参考链接:https://jingyan.baidu.com/article/6dad5075237536a123e36e0c.html

2、按照官方安装
参考链接:https://pkg.jenkins.io/debian/

wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -

#添加如下内容
sudo cat <<EOF >> /etc/apt/sources.list
deb https://pkg.jenkins.io/debian binary/
EOF

sudo apt-get update
sudo apt-get install jenkins
Err:1 https://pkg.jenkins.io/debian-stable binary/ jenkins 2.138.1
    server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Failed to fetch https://pkg.jenkins.io/debian-stable/binary/jenkins_2.138.1_all.deb  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

#由于不能够和时间服务器通信,用命令修改了时间之后,一切ok
参考链接
https://blog.csdn.net/bugmeout/article/details/46566165

#启动jenkins时遇到ERROR: No Java executable found in current PATH: /bin:/usr/bin:/sbin:/usr/sbin的问题
#解决办法:
sudo ln -s /usr/local/java/jdk1.8.0_181/bin/java  /usr/bin/java

#启动jenkins方式1
sudo systemctl start jenkins 
#启动jenkins方式2
sudo /etc/init.d/jenkins start 
#查看jenkins状态方式1
systemctl status jenkins 
#查看jenkins状态方式2
/etc/init.d/jenkins status 

参考链接:
https://www.jianshu.com/p/845f267aec52
https://www.w3cschool.cn/jenkins/jenkins-79ex28jh.html

转载于:https://blog.51cto.com/huwho/2176924

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值