Skip to content

Instantly share code, notes, and snippets.

Last active February 4, 2021 00:46
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
#Remove Java 1.7
yum remove java-1.7.0*
#Install Java 1.8*
yum install java-1.8*
#Setup the jre path -
find /usr/lib/jvm/java-1.8* | head -n 3
#Open the bash file
vi .bash_profile
To verify whether the path is set properly, we need to logout and login again --- Execute below commands
sudo su -
echo $JAVA_HOME //output - /usr/lib/jvm/java-1.8.0-openjdk-
#Install Repository & key
sudo wget -O /etc/yum.repos.d/jenkins.repo
sudo rpm --import
#Install jenkins
yum install jenkins
#check the jenkins status
service jenkins status
#start the jenkins server
service jenkins start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment