创建数据库
CREATEUSER'git'@'localhost'IDENTIFIEDBY'git';
CREATEDATABASEreviewdb;
ALTERDATABASEreviewdbcharset=latin1;
GRANTALLONreviewdb.*TO'git'@'localhost';
FLUSHPRIVILEGES;
安装gerrit
java-jarsoftware/gerrit-full-2.5.2.warinit-dgerrit/
配置gerrit
/home/apuser/gerrit/etc/gerrit.config