
Step 1: Update System
> yum update
> apt-get update
Step 2: Install git
Step 3: Install screen
Step 4: Install screen
Step 5: Install Java
Step 6: MySQL
Step 7: Install Gerrit
1. Create a Database
2. Initialize the site
3. Download Gerrit
wget https://gerrit-releases.storage.googleapis.com/gerrit-2.9.1.war
4. Start Gerrit Setup
5. Restart / Stop / Start gerrit
5. Access Gerrit
Step 8: Install Apache
Step 9: Configure Apache Proxy to Gerrit
Step 10: Verify
Some important Tools
Screen
Reference
https://gerrit.googlecode.com/svn/documentation/2.0/install.html
http://dachary.org/?p=1716
https://www.rosehosting.com/blog/how-to-install-gerrit2-on-a-centos-7-linux-vps/
https://www.digitalocean.com/community/tutorials/how-to-install-gerrit-on-an-ubuntu-cloud-server
Latest posts by scmgalaxy K (see all)
- Use of runtime variables to save into another variable using register in Ansible - September 6, 2018
- Ansible & Ansible Tower Variable Precedence Hierarchy - September 6, 2018
- How to use template in Ansible? - September 6, 2018
This tutorial on installing and configuring Gerrit2 on CentOS and Ubuntu provides practical insight into setting up a powerful code review and collaboration system that integrates tightly with Git. Gerrit helps teams enforce quality and consistency by allowing changes to be reviewed before they are merged, enabling better control over code quality and team workflows — especially in larger development teams. Setting up Gerrit typically involves preparing the environment with Java, Git, and a database, initializing the Gerrit site, configuring web access (often with Apache as a reverse proxy), and ensuring secure SSH access for users — all of which strengthens your CI/CD pipelines and standardizes development practices. This hands‑on approach is excellent for engineers wanting to host their own review system within their infrastructur