Jenkins fails when running “service start jenkins”

前端 未结 21 2888
不知归路
不知归路 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:35

    I had below error:

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

    Solution was to revert the NAME to jenkins in the below file (Earlier I have changed it to 'NAME=ubuntu'):

    sudo vi /etc/default/jenkins
        NAME=jenkins
    

    Now restart passed:

    sudo service jenkins restart
    sudo systemctl restart jenkins.service
    

    Hope that helps.

提交回复
热议问题