标签:报告 启动 usr red via java 重启 The 日志
操作系统: centos 7.6;Jenkins: jenkins-2.222.1-1.1.noarch.rpm;JDK版本: jdk1.8;
前提条件: 安装配置好JDK,具体步骤详见Linux 配置系列 一 jdk tomcat python
1.配置文件,如配置端口号
/etc/sysconfig/jenkins
2.日志文件
/var/log/jenkins/jenkins.log
3.生成war包
/usr/lib/jenkins/jenkins.war
4.默认的JENKINS_HOME目录
/var/lib/jenkins/
修改用户:vim /etc/sysconfig/jenkins>>JENKINS_USER="root"
配置Java:vim /etc/init.d/jenkins>>candidates增加:/usr/local/java/jdk1.8.0_241/bin/java
说明:/usr/local/java/jdk1.8.0_241/bin/java可以通过which java查看获取
问题描述: 启动Jenkin时报错,具体:Restarting jenkins (via systemctl): Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.
解决方法: 修改/etc/init.d/jenkins文件,把java路径配置进去
标签:报告 启动 usr red via java 重启 The 日志
原文地址:https://www.cnblogs.com/yiwenrong/p/12730176.html