gpt4 book ai didi

java - Jenkins Service Star 在 Ubuntu 16.04 上失败

转载 作者:太空宇宙 更新时间:2023-11-04 05:15:47 25 4
gpt4 key购买 nike

我使用sudo apt-get install jenkins来安装最新的jenkins 2.107.2但它开始失败并显示消息:jenkins.service 作业失败,因为控制进程退出并出现错误代码。有关详细信息,请参阅“systemctl status jenkins.service”和“journalctl -xe”。

我运行systemctl status jenkins.service enter image description here

顺便说一句,我的jdk是:

➜  ~ java -version
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

我尝试重新安装,但不起作用

sudo apt-get remove jenkins
sudo apt-get remove --auto-remove jenkins
sudo apt-get purge jenkins
sudo apt-get purge --auto-remove jenkins

我确定不是端口占用的问题谁能帮我解决这个问题?非常感谢。

最佳答案

需要更新准备脚本以确保/etc/sysconfig/jenkins 在其 JENKINS_JAVA_OPTIONS var 声明中包含 -Djava.io.tmpdir=$JENKINS_HOME/tmp 并确保 Jenkins 拥有的 ${JENKINS_HOME}/tmp 实际存在。

引用: https://github.com/plus3it/dotc-jenkins/issues/34

关于java - Jenkins Service Star 在 Ubuntu 16.04 上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49791544/

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