We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a488ea commit 67132f9Copy full SHA for 67132f9
JENKINS-INSTALLATION/Jenkins-redhat8-install28.sh
@@ -1,5 +1,10 @@
1
-# CREATE HOSTNAME
2
-sudo hostname auto
+#!/bin/bash
+# Author: Prof Legah
3
+# date: sep/12/2022
4
+# Installing Jenkins on RHEL 7/8, CentOS 7/8 or Amazon Linux OS
5
+# You can execute this script as user-data when launching your EC2 VM.
6
+sudo timedatectl set-timezone America/New_York
7
+sudo hostnamectl set-hostname jenkins
8
sudo yum install wget -y
9
sudo wget -O /etc/yum.repos.d/jenkins.repo \
10
https://pkg.jenkins.io/redhat-stable/jenkins.repo
@@ -18,3 +23,4 @@ sudo systemctl start jenkins
18
23
# You can check the status of the Jenkins service using the command:
19
24
sudo systemctl status jenkins
20
25
sudo su - ec2-user
26
+echo "echo of jenkins installation"
0 commit comments