gpt4 book ai didi

linux - 在 Ubuntu 18.04.4 上安装 Jenkins。 Jenkins 没有开始

转载 作者:太空宇宙 更新时间:2023-11-04 04:52:42 29 4
gpt4 key购买 nike

信息:

将 Java 更新到版本 8 后,我还按照下面定义的步骤安装了 Jenkins。当我尝试启动 Jenkins 时,它无法启动。我使用的是 Ubuntu 18.04.04。

重现问题的步骤

这些步骤包含可用于在 Ubuntu 18.04 和 Java 8 上安装 Jenkins 的过程。这些步骤可以与 Ubuntu 18.04.04 一起使用吗?

 sudo add-apt-repository ppa:webupd8team/java
sudo apt install oracle-java8-installer
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
sudo apt-add-repository "deb https://pkg.jenkins.io/debian-stable binary/"
sudo apt install jenkins

安装后问题概述

jenkins.service - LSB: Start Jenkins at boot time
Loaded: loaded (/etc/init.d/jenkins; generated)
Active: failed (Result: exit-code) since Wed 2019-01-09 11:47:20 CET; 3min 6s
Docs: man:systemd-sysv-generator(8)
Process: 692 ExecStart=/etc/init.d/jenkins start (code=exited, status=1/FAILUR

Jan 09 11:47:19 Jenkins systemd[1]: Starting LSB: Start Jenkins at boot time...
Jan 09 11:47:19 Jenkins jenkins[692]: Found an incorrect Java version
Jan 09 11:47:19 Jenkins jenkins[692]: Java version found:
Jan 09 11:47:20 Jenkins jenkins[692]: openjdk version "10.0.2" 2018-07-17
Jan 09 11:47:20 Jenkins jenkins[692]: OpenJDK Runtime Environment (build 10.0.2+
Jan 09 11:47:20 Jenkins jenkins[692]: OpenJDK 64-Bit Server VM (build 10.0.2+13-
Jan 09 11:47:20 Jenkins jenkins[692]: Aborting
Jan 09 11:47:20 Jenkins systemd[1]: jenkins.service: Control process exited, cod
Jan 09 11:47:20 Jenkins systemd[1]: jenkins.service: Failed with result 'exit-co
Jan 09 11:47:20 Jenkins systemd[1]: Failed to start LSB: Start Jenkins at boot t
lines 1-16/16 (END)

最佳答案

您安装了 OracleJDK,但 Jenkins 找到了 OpenJDK

尝试

sudo update-alternatives --config java

关于linux - 在 Ubuntu 18.04.4 上安装 Jenkins。 Jenkins 没有开始,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54108576/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com