How to install and Configure Jenkins on CentOS 7 and RHEL 7
- First lets install some dependency
sudo yum install epel-release -y
sudo yum-config-manager --enable epel
sudo yum install java-1.8.0-openjdk-devel
- Jenkins package is not available in the default CentOS and RHEL repositories. So we need to add jenkins repository using the beneath commands.
curl --silent --location http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | sudo tee /etc/yum.repos.d/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
- Run the below yum command to install Jenkins.
yum install jenkins java-1.8.0-openjdk –y
- Run the following systemctl commands to start and enable the jenkins service
systemctl start jenkins
systemctl enable jenkins
Tag:Jenkins