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