{"id":459,"date":"2015-11-21T11:46:08","date_gmt":"2015-11-21T11:46:08","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2015\/11\/21\/install-and-configure-gerrit2-in-centos-and-ubantu\/"},"modified":"2017-12-17T13:34:23","modified_gmt":"2017-12-17T13:34:23","slug":"install-and-configure-gerrit2-in-centos-and-ubantu","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/install-and-configure-gerrit2-in-centos-and-ubantu\/","title":{"rendered":"How to Install and Configure Gerrit2 in CentOs and Ubantu ?"},"content":{"rendered":"<div><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3147 size-full\" src=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/11\/install-and-configure-gerri.png\" alt=\"gerrit2-installation-configuration\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2015\/11\/install-and-configure-gerri.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2015\/11\/install-and-configure-gerri-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/div>\n<div><strong>Step 1: \u00a0Update System<\/strong><\/div>\n<div>&gt; yum update<\/div>\n<div>&gt; apt-get update<\/div>\n<div><\/div>\n<div><strong>Step 2: Install git<\/strong><\/div>\n<div><\/div>\n<div><strong>Step 3: Install screen<\/strong><\/div>\n<div><\/div>\n<div><strong>Step 4: Install screen<\/strong><\/div>\n<div><\/div>\n<div><strong>Step 5: Install Java<\/strong><\/div>\n<div><\/div>\n<div><strong>Step 6: MySQL<\/strong><\/div>\n<div><\/div>\n<div><strong>Step 7: Install Gerrit<\/strong><\/div>\n<div>1. Create a Database<\/div>\n<div>2. Initialize the site<\/div>\n<div>3. Download Gerrit<\/div>\n<div>wget https:\/\/gerrit-releases.storage.googleapis.com\/gerrit-2.9.1.war<\/div>\n<div>4. Start Gerrit Setup<\/div>\n<div>5. Restart \/ Stop \/ Start gerrit<\/div>\n<div>5. Access Gerrit<\/div>\n<div><\/div>\n<div><strong>Step 8: Install Apache<\/strong><\/div>\n<div><\/div>\n<div><strong>Step 9: Configure Apache Proxy to Gerrit<\/strong><\/div>\n<div><\/div>\n<div><strong>Step 10: Verify<\/strong><\/div>\n<div><\/div>\n<div><strong>Some important Tools<\/strong><\/div>\n<div>Screen<\/div>\n<div><a href=\"http:\/\/www.tecmint.com\/screen-command-examples-to-manage-linux-terminals\/\" target=\"_blank\" rel=\"noopener\">http:\/\/www.tecmint.com\/screen-command-examples-to-manage-linux-terminals\/<\/a><\/div>\n<div><\/div>\n<div>Reference<\/div>\n<div><a href=\"https:\/\/gerrit-review.googlesource.com\/Documentation\/install-quick.html\" target=\"_blank\" rel=\"noopener\">https:\/\/gerrit-review.googlesource.com\/Documentation\/install-quick.html<\/a><\/div>\n<div><a href=\"https:\/\/review.openstack.org\/Documentation\/install.html\" target=\"_blank\" rel=\"noopener\">https:\/\/review.openstack.org\/Documentation\/install.html<\/a><\/div>\n<div>https:\/\/gerrit.googlecode.com\/svn\/documentation\/2.0\/install.html<\/div>\n<div>http:\/\/dachary.org\/?p=1716<\/div>\n<div>https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/<\/div>\n<div>https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-gerrit-on-an-ubuntu-cloud-server<\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Step 1: \u00a0Update System &gt; yum update &gt; apt-get update Step 2: Install git Step 3: Install screen Step 4: Install screen Step 5: Install Java Step 6: MySQL Step&#8230; <\/p>\n","protected":false},"author":1,"featured_media":3147,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[558],"tags":[535,254,945,1340,1344,1345,1342,1343,1346,1122,545,237,593,1339,213,1341],"class_list":["post-459","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-source-code-management","tag-centos","tag-configure","tag-gerrit","tag-gerrit2","tag-gerrit2-configuration-in-centos","tag-gerrit2-configuration-in-ubantu","tag-gerrit2-installation-in-centos","tag-gerrit2-installation-in-ubantu","tag-gerrit2-tutorial","tag-guide","tag-how","tag-install","tag-process","tag-step","tag-tutorial","tag-ubantu"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=459"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/459\/revisions"}],"predecessor-version":[{"id":3302,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/459\/revisions\/3302"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/3147"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}