How To Install Jenkins on Rocky Linux 8

How To Install Jenkins on Rocky Linux 8

in This Tutorial you will Learn " How To Install Jenkins on Rocky Linux 8"  
Jenkins is an open-source, widely used automation software tool. It is used in the software development life cycle to build, test, and deploy code automatically. Jenkins is written in Java and allows you to automate a series of tasks in order to complete the continuous integration process. It provides a simple and user-friendly web interface that allows you to manage complicated tasks through a web-based dashboard.
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -        |     Hostname -
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install java-11-openjdk -y
java -version

wget -O /etc/yum.repos.d/jenkins.repo
rpm --import
dnf repolist

dnf install jenkins --nobest
systemctl start jenkins ; systemctl enable jenkins ; systemctl status jenkins
dnf install nginx -y
nano /etc/nginx/conf.d/jenkins.conf
upstream jenkins {
  server fail_timeout=0;

server {
  listen 80;

  location / {
    proxy_set_header        Host $host:$server_port;
    proxy_set_header        X-Real-IP $remote_addr;
    proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header        X-Forwarded-Proto $scheme;
    proxy_pass              http://jenkins;
    # Required for new HTTP-based CLI
    proxy_http_version 1.1;
    proxy_request_buffering off;
    proxy_buffering off; # Required for HTTP-based CLI to work over SSL
nano /etc/nginx/nginx.conf
server_names_hash_bucket_size 64;
nginx -t
systemctl start nginx ; systemctl enable nginx
cat /var/lib/jenkins/secrets/initialAdminPassword

Share on Pinterest
Share on LinkedIn
Share on WhatsApp
Share on Telegram