Jenkins fails when running “service start jenkins”

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

    I had the same issue, and when I checked if Java is installed I realised it's not, so installing Java solved the problem for me.

    Check for java:

    java -version
    

    If Java is installed in the system, the command will return the java version otherwise it will show a message like this.

    The program 'java' can be found in the following packages:
     * default-jre
     * gcj-5-jre-headless
     * openjdk-8-jre-headless
     * gcj-4.8-jre-headless
     * gcj-4.9-jre-headless
     * openjdk-9-jre-headless
    

    To install java use the following command.

    sudo apt-get install default-jre
    

提交回复
热议问题