How to Install and Configure Jenkins 2 on centos/Redhat Servers

In our previous post, we explained the latest jenkins features and installation for Debian-based servers. As per few user requests, we have created the steps for installing jenkins 2 versions on centos and Redhat servers.

Jenkins 2 on centos/Redhat

This tutorial will guide you to install Jenkins 2 on a centos/Redhat machines.

1. Install java 1.7 JDK.

2. Add the Jenkins repository.

3. Import the repo key.

4. There are many jenkins 2 versions. To install the specific version, you need to get the yum list. Use the following command to get the list of available jenkins versions.

You will see a list like the following.

5. Select a specific version of your choice and install it using the following syntax.

For example, if you want to install 2.9-1.1, you can execute the command as shown below.

6. Start the jenkins 2 service.

7. Enable jenkins as a startup service.

8. Allow the required ports using iptables.

9. Access the Jenkins dashboard on port 8080 using your servers IP address.

10. Open the following file in the terminal and copy the password. supply the password in the dashboard.

11. All the other steps are self-explanatory. You can follow the dashboard steps and configure plugins and users.

Free DevOps Resources

Get DevOps news, tutorials and resources in your inbox. A perfect way If you want to get started with devops. Like you, we dont like spam.