centos Jenkins安装

u59ebvdq  于 2022-11-07  发布在  Jenkins
关注(0)|答案(2)|浏览(234)

当我运行

wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo

它说使用--不检查-证书,因此我照做了。在安装的下一步,同时拍摄命令

rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

它抛出了以下错误。我不知道为什么SSL过期不是一个问题。

curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

    curl failed to verify the legitimacy of the server and therefore could not
    establish a secure connection to it. To learn more about this situation and
    how to fix it, please visit the web page mentioned above.
    error: https://pkg.jenkins.io/redhat-stable/jenkins.io.key: import read failed(2).
du7egjpx

du7egjpx1#

请检查您的ca-certificates软件包。它很可能是由于更新和更新该软件包可以解决这个错误。它为我工作。

ikfrs5lh

ikfrs5lh2#

以下是我为解决此问题而采取的步骤:
更新或重新安装ca证书

sudo yum update -y ca-certificates

sudo yum reinstall -y ca-certificates

您也可以从/etc/yum.repos.d中删除以前的jenkins repo,然后从头开始安装。

cd /etc/yum.repos.d/

rm jenkins.repo

sudo yum reinstall -y ca-certificates

sudo yum update -y ca-certificates

sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo --no-check-certificate

sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

sudo yum upgrade

sudo yum install java-11-openjdk -y

sudo yum install jenkins

相关问题