{"id":5409,"date":"2014-11-24T14:22:57","date_gmt":"2014-11-24T20:22:57","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=5409"},"modified":"2022-12-09T06:07:23","modified_gmt":"2022-12-09T12:07:23","slug":"how-to-install-gerrit2-on-a-centos-7-linux-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/","title":{"rendered":"How to install Gerrit2 on CentOS 7"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignleft size-full wp-image-24735\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7.jpg\" alt=\"How-to-install-Gerrit2-on-CentOS-7\" width=\"1200\" height=\"600\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7.jpg 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7-768x384.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7-1024x512.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7-860x430.jpg 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7-680x340.jpg 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7-500x250.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7-400x200.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7-200x100.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7-50x25.jpg 50w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>How to install Gerrit2 on CentOS 7.\u00a0Gerrit<strong>\u00a0<\/strong>\u00a0is a web based code review application which uses the Git version control system. Gerrit makes code review easier by generating the code changes in a side-by-side preview, allowing inline comments that can be added by a reviewer. Gerrit allows any authorized user to submit changes to the master Git repository, which simplifies the process when an approved change has to be merged in manually by the project maintainer.<\/p>\n<p><strong>System requirements?<\/strong><\/p>\n<ul>\n<li>A Linux VPS hosting<\/li>\n<li>JAVA JDK higher than 1.7<\/li>\n<li>Database Server<\/li>\n<li>Web Server<\/li>\n<li>GIT<\/li>\n<li>CentOS 7 OS<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h3><b>1. UPDATE SYSTEM<\/b><\/h3>\n<p>First thing to do, is to <code>SSH<\/code> to your server, initiate a <code>screen<\/code> session and make sure your <a title=\"CentOS VPS\" href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">CentOS 7 VPS<\/a> is fully up-to-date by running:<\/p>\n<pre>## screen -U -S gerrit-screen\r\n## yum update<\/pre>\n<p>install git and vim<\/p>\n<pre>## yum install git vim<\/pre>\n<h3><b>2. INSTALL JAVA<\/b><\/h3>\n<p>Next, JAVA is required for Gerrit installation, and you can <a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html\" target=\"_blank\" rel=\"noopener noreferrer\">download the latest version of JAVA easily<\/a>. At the time of writing this article the latest version of JAVA is 8u25 and can be downloaded and installed using the following commands:<\/p>\n<h4>for 64-bit systems:<\/h4>\n<pre>## wget --no-cookies \\\r\n--no-check-certificate \\\r\n--header \"Cookie: oraclelicense=accept-securebackup-cookie\" \\\r\n\"http:\/\/download.oracle.com\/otn-pub\/java\/jdk\/8u25-b17\/jdk-8u25-linux-x64.rpm\" \\\r\n-O \/opt\/jdk-8-linux-x64.rpm<\/pre>\n<h4>for 32-bit systems:<\/h4>\n<pre>## wget --no-cookies \\\r\n--no-check-certificate \\\r\n--header \"Cookie: oraclelicense=accept-securebackup-cookie\" \\\r\n\"http:\/\/download.oracle.com\/otn-pub\/java\/jdk\/8u25-b17\/jdk-8u25-linux-i586.rpm\" \\\r\n-O \/opt\/jdk-8-linux-i586.rpm<\/pre>\n<p>once the JAVA package has been downloaded, install it using <code>yum<\/code> as follows:<\/p>\n<p>for 32bit systems use:<\/p>\n<pre>## yum install \/opt\/jdk-8-linux-i586.rpm<\/pre>\n<p>for 64bit systems use:<\/p>\n<pre>## yum install \/opt\/jdk-8-linux-x64.rpm<\/pre>\n<p>configure the JAVA package using <code>alternatives<\/code> as in:<\/p>\n<pre>## JDK_DIRS=($(ls -d \/usr\/java\/jdk*))\r\n## JDK_VER=${JDK_DIRS[@]:(-1)}\r\n\r\n## alternatives --install \/usr\/bin\/java java \/usr\/java\/\"${JDK_VER##*\/}\"\/jre\/bin\/java 20000\r\n## alternatives --install \/usr\/bin\/jar jar \/usr\/java\/\"${JDK_VER##*\/}\"\/bin\/jar 20000\r\n## alternatives --install \/usr\/bin\/javac javac \/usr\/java\/\"${JDK_VER##*\/}\"\/bin\/javac 20000\r\n## alternatives --install \/usr\/bin\/javaws javaws \/usr\/java\/\"${JDK_VER##*\/}\"\/jre\/bin\/javaws 20000\r\n## alternatives --set java \/usr\/java\/\"${JDK_VER##*\/}\"\/jre\/bin\/java\r\n## alternatives --set javaws \/usr\/java\/\"${JDK_VER##*\/}\"\/jre\/bin\/javaws\r\n## alternatives --set javac \/usr\/java\/\"${JDK_VER##*\/}\"\/bin\/javac\r\n## alternatives --set jar \/usr\/java\/\"${JDK_VER##*\/}\"\/bin\/jar<\/pre>\n<p>check the JAVA version running on your system:<\/p>\n<pre>## java -version<\/pre>\n<h3><b>3. INSTALL MARIADB (MYSQL)<\/b><\/h3>\n<p>Install MariaDB, the default databases server in CentOS 7 which is a drop-in-replacement for MySQL using <code>yum<\/code>:<\/p>\n<pre>## yum install mariadb mariadb-server mysql<\/pre>\n<p>Once installed, edit its server configuration file in <code>\/etc\/my.cnf.d\/server.cnf<\/code> and add the following:<\/p>\n<pre>## vim \/etc\/my.cnf.d\/server.cnf\r\n\r\n[mysqld]\r\n#log-bin=mysql-bin\r\n#binlog_format=mixed\r\nbind-address = 127.0.0.1<\/pre>\n<p>Start and add MariaDB to your system&#8217;s startup using <code>systemctl<\/code>:<\/p>\n<pre>## systemctl restart mariadb\r\n## systemctl status mariadb\r\n## systemctl enable mariadb<\/pre>\n<p>Optionally but recommended, run <code>mysql_secure_installation<\/code> to finialize MariaDB setup:<\/p>\n<pre>## mysql_secure_installation\r\n\r\nEnter current password for root (enter for none): ENTER\r\nSet root password? [Y\/n] Y\r\nRemove anonymous users? [Y\/n] Y\r\nDisallow root login remotely? [Y\/n] Y\r\nRemove test database and access to it? [Y\/n] Y\r\nReload privilege tables now? [Y\/n] Y<\/pre>\n<h3><b>4. INSTALL GERRIT<\/b><\/h3>\n<h4>Create a database<\/h4>\n<p>You have to create a user and database and grant privileges on the database to the newly created user. You can achieve this using the following commands:<\/p>\n<pre>## mysql -u root -p\r\n\r\nMariaDB&gt; create database gerritdb;\r\nMariaDB&gt; grant all on gerritdb.* to gerrit@localhost identified by 'secret';\r\n<\/pre>\n<h4>Initialize the Site<\/h4>\n<p>Gerrit stores configuration files, the server&#8217;s SSH keys and the managed Git repositories under a local directory. It&#8217;s recommended to run Gerrit Code Review as a separate user account on the system, so let&#8217;s first create a new user and login with the newly created user:<\/p>\n<pre>## useradd -m gerrit2\r\n## su - gerrit2<\/pre>\n<h4>Download gerrit<\/h4>\n<p>You can download gerrit using the command below:<\/p>\n<pre>## wget https:\/\/gerrit-releases.storage.googleapis.com\/gerrit-2.9.1.war -O \/home\/gerrit2\/gerrit.war<\/pre>\n<p>once the gerrit2 war file has been downloaded and you&#8217;re logged in as <code>gerrit2<\/code>, run the following command to initialize a new site directory:<\/p>\n<pre>## java -jar gerrit.war init -d \/home\/gerrit2\/review_site<\/pre>\n<p>fill the questions asked by the wizard, for example:<\/p>\n<pre>Location of Git repositories   [git]: \r\nDatabase server type           [mysql]: \r\nServer hostname                [localhost]: \r\nServer port                    [(mysql default)]: \r\nDatabase name                  [gerritdb]: \r\nDatabase username              [gerrit]: \r\nChange gerrit's password       [y\/N]? n \r\nType                           [LUCENE\/?]: \r\nAuthentication method          [HTTP\/?]: \r\nGet username from custom HTTP header [y\/N]?  \r\nSSO logout URL                 : \r\nInstall Verified label         [y\/N]? \r\nSMTP server hostname           [localhost]: \r\nSMTP server port               [(default)]: \r\nSMTP encryption                [NONE\/?]: \r\nSMTP username                  : \r\nRun as                         [gerrit2]: \r\nJava runtime                   [\/usr\/java\/jdk1.8.0_25\/jre]: \r\nUpgrade \/home\/gerrit2\/review_site\/bin\/gerrit.war [Y\/n]? \r\nCopying gerrit.war to \/home\/gerrit2\/review_site\/bin\/gerrit.war\r\nListen on address              [*]: \r\nListen on port                 [29418]: \r\nBehind reverse proxy           [Y\/n]? \r\nProxy uses SSL (https:\/\/)      [y\/N]? \r\nSubdirectory on proxy server   [\/gerrit\/]: \r\nListen on address              [*]: \r\nListen on port                 [8081]: \r\nCanonical URL                  [http:\/\/vs377.rosehosting.com\/gerrit\/]: \r\nInstall plugin commit-message-length-validator version v2.9.1 [y\/N]? \r\nInstall plugin download-commands version v2.9.1 [y\/N]? \r\nInstall plugin replication version v2.9.1 [y\/N]? \r\nInstall plugin reviewnotes version v2.9.1 [y\/N]? \r\nInstall plugin singleusergroup version v2.9.1 [y\/N]? \r\n\r\nInitialized \/home\/gerrit2\/review_site<\/pre>\n<p>next, run the following command to rebuilt the gerrit index:<\/p>\n<pre>## java -jar gerrit.war reindex -d \/home\/gerrit2\/review_site<\/pre>\n<p>and start the gerrit using the command below:<\/p>\n<pre>## \/home\/gerrit2\/review_site\/bin\/gerrit.sh start<\/pre>\n<p>exit to root by executing the <code>exit<\/code> command.<\/p>\n<p>&nbsp;<\/p>\n<h3><b>5. INSTALL APACHE<\/b><\/h3>\n<p>Install Apache using <code>yum<\/code>:<\/p>\n<pre>## yum install httpd httpd-tools openssl mod_ssl<\/pre>\n<p>Add the following to <code>\/etc\/httpd\/conf.d\/options.conf<\/code><\/p>\n<pre>## vim \/etc\/httpd\/conf.d\/options.conf\r\n\r\nTraceEnable off\r\n\r\n## Disable Signature\r\nServerSignature Off\r\n\r\n## Disable Banner\r\nServerTokens Prod<\/pre>\n<pre>## vim \/etc\/httpd\/conf.d\/vhosts.conf\r\n\r\n# Load my vhosts\r\nIncludeOptional vhosts.d\/*.conf<\/pre>\n<pre>## mkdir \/etc\/httpd\/vhosts.d<\/pre>\n<p>Restart Apache and add it to automatically start on your system start-up using:<\/p>\n<pre>## systemctl restart httpd\r\n## systemctl status httpd\r\n## systemctl enable httpd<\/pre>\n<p>&nbsp;<\/p>\n<h3><b>6. APACHE PROXY TO GERRIT<\/b><\/h3>\n<pre>## vim \/etc\/httpd\/vhosts.d\/gerrit.conf\r\n\r\n&lt;VirtualHost your_ip_address:80&gt;\r\n    ServerName your_hostname\r\n\r\n    ProxyRequests Off\r\n    ProxyVia Off\r\n    ProxyPreserveHost On\r\n\r\n    &lt;Proxy *&gt;\r\n\t\tOrder deny,allow\r\n\t\tAllow from all\r\n    &lt;\/Proxy&gt;\r\n\r\n    &lt;Location \/gerrit\/login\/&gt;\r\n\t\tAuthType Basic\r\n\t\tAuthName \"Gerrit Code Review\"\r\n\t\tRequire valid-user\r\n\t\tAuthUserFile '\/etc\/httpd\/gerrit.htpasswd'\r\n    &lt;\/Location&gt;\r\n\r\n    AllowEncodedSlashes On\r\n    ProxyPass \/gerrit\/ http:\/\/your_ip_address:8081\/gerrit\/\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>create user using <code>htpasswd<\/code><\/p>\n<pre>## htpasswd -c \/etc\/httpd\/gerrit.htpasswd admin\r\nNew password: \r\nRe-type new password: \r\nAdding password for user admin<\/pre>\n<p>restart apache using<\/p>\n<pre>## systemctl restart httpd<\/pre>\n<p>next, navigate to http:\/\/your_hostname\/gerrit\/ and you should get the Gerrit review application loaded in your browser.<\/p>\n<h3>What&#8217;s Next?<\/h3>\n<ul>\n<li><a href=\"https:\/\/gerrit-review.googlesource.com\/Documentation\/project-configuration.html\" target=\"_blank\" rel=\"noopener noreferrer\">Project Configuration<\/a><\/li>\n<li><a href=\"http:\/\/source.android.com\/source\/life-of-a-patch.html\" target=\"_blank\" rel=\"noopener noreferrer\">Gerrit Workflow<\/a><\/li>\n<\/ul>\n<p>Of course you don\u2019t have to\u00a0install Gerrit2 on CentOS 7,\u00a0 if you use one of our <a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\">CentOS VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Gerrit2 on CentOS 7 for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><strong><span style=\"color: #ff0000;\">PS<\/span>.<\/strong> If you liked this post on how to install Gerrit2 on CentOS 7, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to install Gerrit2 on CentOS 7.\u00a0Gerrit\u00a0\u00a0is a web based code review application which uses the Git version control system. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to install Gerrit2 on CentOS 7\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/#more-5409\" aria-label=\"Read more about How to install Gerrit2 on CentOS 7\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":24735,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,13],"tags":[34,630,632,77,177],"class_list":["post-5409","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-tutorials","tag-centos","tag-gerrit","tag-gerrit2","tag-java","tag-linux-vps","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.6 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to install Gerrit2 on CentOS 7 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to install Gerrit2 on CentOS 7 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install Gerrit2 on CentOS 7\" \/>\n<meta property=\"og:description\" content=\"How to install Gerrit2 on CentOS 7 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2014-11-24T20:22:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-09T12:07:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gerrit2-on-a-centos-7-linux-vps\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gerrit2-on-a-centos-7-linux-vps\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to install Gerrit2 on CentOS 7\",\"datePublished\":\"2014-11-24T20:22:57+00:00\",\"dateModified\":\"2022-12-09T12:07:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gerrit2-on-a-centos-7-linux-vps\\\/\"},\"wordCount\":558,\"commentCount\":9,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gerrit2-on-a-centos-7-linux-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/11\\\/How-to-install-Gerrit2-on-CentOS-7.jpg\",\"keywords\":[\"centos\",\"gerrit\",\"gerrit2\",\"java\",\"linux vps\"],\"articleSection\":[\"CentOS\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gerrit2-on-a-centos-7-linux-vps\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gerrit2-on-a-centos-7-linux-vps\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gerrit2-on-a-centos-7-linux-vps\\\/\",\"name\":\"How to install Gerrit2 on CentOS 7 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gerrit2-on-a-centos-7-linux-vps\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gerrit2-on-a-centos-7-linux-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/11\\\/How-to-install-Gerrit2-on-CentOS-7.jpg\",\"datePublished\":\"2014-11-24T20:22:57+00:00\",\"dateModified\":\"2022-12-09T12:07:23+00:00\",\"description\":\"How to install Gerrit2 on CentOS 7 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gerrit2-on-a-centos-7-linux-vps\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gerrit2-on-a-centos-7-linux-vps\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gerrit2-on-a-centos-7-linux-vps\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/11\\\/How-to-install-Gerrit2-on-CentOS-7.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/11\\\/How-to-install-Gerrit2-on-CentOS-7.jpg\",\"width\":1200,\"height\":600,\"caption\":\"How-to-install-Gerrit2-on-CentOS-7\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gerrit2-on-a-centos-7-linux-vps\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install Gerrit2 on CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to install Gerrit2 on CentOS 7 | RoseHosting","description":"How to install Gerrit2 on CentOS 7 | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/","og_locale":"en_US","og_type":"article","og_title":"How to install Gerrit2 on CentOS 7","og_description":"How to install Gerrit2 on CentOS 7 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2014-11-24T20:22:57+00:00","article_modified_time":"2022-12-09T12:07:23+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to install Gerrit2 on CentOS 7","datePublished":"2014-11-24T20:22:57+00:00","dateModified":"2022-12-09T12:07:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/"},"wordCount":558,"commentCount":9,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7.jpg","keywords":["centos","gerrit","gerrit2","java","linux vps"],"articleSection":["CentOS","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/","name":"How to install Gerrit2 on CentOS 7 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7.jpg","datePublished":"2014-11-24T20:22:57+00:00","dateModified":"2022-12-09T12:07:23+00:00","description":"How to install Gerrit2 on CentOS 7 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-install-Gerrit2-on-CentOS-7.jpg","width":1200,"height":600,"caption":"How-to-install-Gerrit2-on-CentOS-7"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gerrit2-on-a-centos-7-linux-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install Gerrit2 on CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/5409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=5409"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/5409\/revisions"}],"predecessor-version":[{"id":43950,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/5409\/revisions\/43950"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/24735"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=5409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=5409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=5409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}