2020 DevOps Guide for Startups

RAID 0,1,2,3

2020 DevOps Guide for Startups

How to integrate git with jenkins

Perquisites: Make sure git is available in jenkins server, if not please run below command to install git:

yum install git
yum groupinstall “Development Tools”
yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel

Step :1 Copy git repo url

Step 2: Create jobs in jenkins and past the copied git url in Repository URL section and give branch name in branch specifier section.

After giving all details, click on apply and save. now run job by clicking on build now.


  1. For private repository you have to give credentials in credentials option.
  2. For public repository no need give credentials.

2020 DevOps Guide for Startups

How to enable log in Jenkins

By using audit trail plugin we can enable log in jenkins

Step 1: Install Audit trail plugin:

Step 2: To manage audit trail plugin navigate to Manage jenkins-> Configure System -> Audit Trail Loggers

Note: Log Separator is option.

Step 3: Login to server where jenkins running. check logs in path mentioned in below screenshot.

2020 DevOps Guide for Startups

Command to check what and all ports are available

Below command will give you list of port where applications were running. You can use the port other than this ports.

netstat -anp

2020 DevOps Guide for Startups

Jenkins Installation

How to Install Jenkins on CentOS.

Below are the steps to install Jenkins on your CentOS system.

Step 1: Jenkins is java application, first install java in your CentOS Server.

sudo yum install java-1.8.0-openjdk-devel.

Note: When we published this blog Java 8 is recommended, Java 9 and Java 10 are not supported.

Step 2: Download Jenkins.
Type URL : on your browser and click on Red Hat/Fedora/CentOS option.

Run the following command:
sudo wget -O /etc/yum.repos.d/jenkins.repo
sudo rpm –import

If you’ve previously imported the key from Jenkins, the “rpm –import” will fail because you already have a key. Please ignore that and move on.

With that set up, the Jenkins package can be installed with:
yum install jenkins

Jenkins installation completed.


Step 3: Start the Jenkins.

Command to start jenkins:

service jenkins start

Command to check jenkins status:

service jenkins status

Step 4: Access jenkins UI

Type http://<public ip>:8080

Give initialAdminPassword:

Login to server where jenkins is installed and cat the file /var/lib/jenkins/secrets/initialAdminPassword file and give copy past the initialAdminPassword

After entering password, select plugins option(install suggested plugins are recommended)

Installed and login to jenkins successfully.

Note: Jenkins by default it will run on 8080 port. recommended to change the port.

To change port: Login to server where jenkins is running and vi /etc/sysconfig/jenkins and change 8080 port.

2020 DevOps Guide for Startups

Building Architecture that migrates from one cloud to another in 5 minutes easily


How to migrate mysql without downtime

  1. Setup new server

    setup a new server

  2. Install OmniMigrate

  3. Give old server root credentials

  4. Git new server root credentials

  5. Change dns

SAAS Apps Migration

which involves App, DB, Storage