CentOS 7 – Jenkins install

Install Java OpenJDK, as it is a dependency for Jenkins. The latest versions of Jenkins are compatible with version 11, so let’s install it.

sudo yum install -y java-11-openjdk

 

To add the Jenkins repository, you will need the "wget" utility, if it is not installed, then install:

sudo yum install -y wget

 

Add the repository and import its key:

sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key

 

Install Jenkins:

sudo yum install -y jenkins

 

Start Jenkins:

sudo systemctl start jenkins

 

Check the status of the service:

sudo systemctl status jenkins

 

If all is well, add to autorun:

sudo systemctl enable jenkins

 

To continue the installation, you need to go to the "8080" port on the server IP address in the browser

0 0 vote
Article Rating

Tagged: Tags

Подписаться
Уведомление о
guest
0 Comments
Inline Feedbacks
View all comments