Skip to content

Installing Jenkins on Rocky Linux 9: A Step-by-Step Guide

Master the process of setting up Jenkins on Rocky Linux 9 for seamless CI/CD automation. This step-by-step tutorial will guide you in launching Jenkins effectively.

Instruction Guide for Jenkins Installation on Rocky Linux 9
Instruction Guide for Jenkins Installation on Rocky Linux 9

Installing Jenkins on Rocky Linux 9: A Step-by-Step Guide

Deploying Jenkins on Rocky Linux 9 offers a powerful combination of enterprise-grade automation and operating system stability, making it an ideal setup for organizations that need secure, maintainable, and long-term CI/CD infrastructure. Here's a step-by-step guide on how to deploy Jenkins on Rocky Linux 9.

Setting Up the Environment

  1. Deploy a Rocky Linux 9 server on Shape.Host. Start by deploying a Rocky Linux 9 server on a reliable hosting provider like Shape.Host, which supports Rocky Linux and Jenkins. Once the server is up and running, connect to it using SSH or PuTTY.
  2. Update the system to ensure all packages are up to date. Run the following command to update the system:
  3. Install OpenJDK 17, which is supported by Jenkins.
  4. Download the Jenkins repository key and create a Jenkins YUM repo file.
  5. Install Jenkins.
  6. Install Jenkins.
  7. Retrieve the Jenkins admin password from a specific file. The password is stored in the file.
  8. Configure UFW to allow traffic for Jenkins and SSH.
  9. Access the Jenkins Admin UI. Open a browser and go to to access the Jenkins Admin UI. Use the password retrieved from the file to log in.

Optimizing Jenkins Performance

To optimize Jenkins performance, consider the following best practices:

  • Use SSD storage for Jenkins data.
  • Run Jenkins agents on separate hosts.
  • Configure parallel stages in declarative pipelines.
  • Tune Java heap size if handling large projects or frequent builds.
  • Offload logs and artifacts to cloud or NAS for better performance and backup.

With Jenkins running on Rocky Linux 9, you'll enjoy the benefits of the OS's robust enterprise features, seamless support for DevOps toolchains, cloud readiness, and ongoing maintenance by an active open-source community. This combination ensures a reliable, secure, and efficient platform for continuous integration and delivery processes.

Key Benefits of Running Jenkins on Rocky Linux 9

  • Smooth integration with Jenkins for CI/CD pipelines: Rocky Linux 9 is designed to fully support modern DevOps automation tools like Jenkins, enabling automated building, testing, and deployment workflows in software development environments.
  • Enterprise-grade stability and security: Rocky Linux 9 provides long-term stability and security, which is essential for running Jenkins in production environments where availability and reliability are critical.
  • Efficient performance for development and production: Being lightweight and efficient, Rocky Linux 9 minimizes resource overhead, allowing Jenkins and associated DevOps tools to run smoothly both in development and production deployments.
  • Compatibility with broader DevOps stack: It supports complementary DevOps tools such as Ansible and Terraform which often integrate with Jenkins for infrastructure automation and provisioning, providing a cohesive environment for continuous integration and continuous deployment pipelines.
  • Cloud-optimized for scalability: Rocky Linux 9 is optimized for cloud deployments (e.g., AWS EC2), making it easier to scale Jenkins workloads as your development needs grow.

In summary, Jenkins benefits from running on Rocky Linux 9 through the OS’s robust enterprise features, seamless support for DevOps toolchains, cloud readiness, and ongoing maintenance by an active open-source community. This combination ensures a reliable, secure, and efficient platform for continuous integration and delivery processes.

  1. To further optimize the performance of your Jenkins setup on Rocky Linux 9, consider making use of data-and-cloud-computing resources, such as running Jenkins agents on separate cloud hosts or offloading logs and artifacts to cloud storage for better performance and backup.
  2. The benefits of deploying Jenkins on Rocky Linux 9 include its technology-driven features, such as its smooth integration with Jenkins for CI/CD pipelines, making it an ideal solution for organizations with scalable and complex software development projects that require enterprise-grade security and stability.

Read also:

    Latest