Jenkins fails when running “service start jenkins”

前端 未结 21 2369
不知归路
不知归路 2021-01-30 20:46

I installed jenkins on Cnetos 7 using the following:

sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --impor         


        
21条回答
  •  悲哀的现实
    2021-01-30 21:39

    ERROR: Linux / Centos:

    Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.

    Solution:

    • Edit the Jenkins init file by doing

      sudo vi /etc/init.d/jenkins
      
    • Add your own Java path, for example:

      /opt/oracle/product/java/jdk1.8.0_45/bin/java
      
    • Restart the service:

      sudo service jenkins start
      sudo service jenkins status
      sudo service jenkins stop
      

提交回复
热议问题