(一):安装gerrit
1:新建一个专用 linux 账号
sudo adduser gerrit
sudo su gerrit
cd ~
2:下载安装包
wget http://gerrit-releases.storage.googleapis.com/gerrit-2.8-rc3.war
3:安装
java -jar gerrit-2.8-rc3.war init -d review_site
(二)配置 gerrit
cat review_site/etc/gerrit.config
[gerrit]
basePath = git
canonicalWebUrl = http://192.168.27.42:8081/gerrit
[database]
type = h2
database = db/ReviewDB
[auth]
type = HTTP
#httpHeader = SM_USER
[sendemail]
smtpServer = mail.pptv.com
smtpServerPort = 587
smtpEncryption =
smtpUser = cmguo
smtpPass = 123456
sslVerify = false
from = PPBOX ROM GERRIT
[container]
user = gerrit
javaHome = /usr/lib/jvm/java-6-sun-1.6.0.26/jre
[sshd]
listenAddress = *:29418
[httpd]
listenUrl = proxy-http://*:8081/gerrit
[cache]
directory = cache
网友评论