Skip to content

Instantly share code, notes, and snippets.

@mohanpedala
mohanpedala / Jenkins_aws_setup.md
Last active July 16, 2017 18:10
Jenkins AWS setup on rhel
  1. Installation Add the Jenkins repository to the yum repos, and install Jenkins from here.
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
  1. Installation of a stable version /n There is also a LTS YUM repository for the LTS Release Line
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key

sudo yum install jenkins

@mohanpedala
mohanpedala / Jenkins_email_extn_plugin.md
Created July 16, 2017 18:53
Jenkins_email_extn_plugin

Add Email-extension plugin

Gmail settings

@mohanpedala
mohanpedala / Jenkins_cron.md
Last active July 17, 2017 19:39
Jenkins Cron setup Explanation

Jenkins will accept 5 parameter lets discuss one by one

* * * * * 
  1. First parameter- specify minute and range will vary from 0-59

  2. Second parameter- specify hours and range will vary from 0-11

  3. Third parameter- specify day and range will vary from 0-7 here 0 and 7 will be Sunday

@mohanpedala
mohanpedala / tomcat8_installation_rhel.md
Last active July 24, 2017 16:44
tomcat8 installation on rhel/centos

Tomcat Installation

https://www.vultr.com/docs/how-to-install-apache-tomcat-8-on-centos-7

Troubleshooting:

  1. Check whether catalina.sh / setenv.sh java paths match the JAVA_HOME
  2. Check the logs > catalina.out / the latest timestamp log file
To get access to the Manage app page:
  1. To access Manage App modify server.xml as suggested in the webpage
  2. Modify the configuration in context.xml as below
@mohanpedala
mohanpedala / ICMP.md
Created July 19, 2017 20:41
ICMP(Internet Control Message Protocol)

ICMP (Internet Control Message Protocol) is an error-reporting protocol network devices like routers use to generate error messages to the source IP address when network problems prevent delivery of IP packets.

@mohanpedala
mohanpedala / JDK8_installation_RHEL.md
Last active July 22, 2017 22:37
Oracle JDK8 installation on RHEL 7

Download Oracle JDK 8

  1. Visit Oracle JDK download page, look for RPM version.
  2. Copy the rpm link and wget it
wget --header "Cookie: oraclelicense=accept-securebackup-cookie" Download link.rpm 

Note: Install wget if missing

sudo yum install wget -y
  1. Install oracle jdk8
sudo yum localinstall jdk8 downloaded package name.rpm
  1. Verfication java -version
@mohanpedala
mohanpedala / Tomcat_SSL.md
Last active July 24, 2017 16:55
Tomcat_SSL configuration
  1. Create a keystore file to store the server's private key and self-signed certificate by executing the following command:

Windows:
"%JAVA_HOME%\bin\keytool" -genkey -alias tomcat -keyalg RSA

Unix:
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA