uname -a
然后apache2的配置:
Linux yangyang 3.8.0-32-generic #47~precise1-Ubuntu SMP Wed Oct 2 16:19:35 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
安装包使用的是:gerrit-2.8-rc3.war
目录安装在:
/home/gerrit2/gerrit_application_directory
增加了了gerrit用户
数据库使用了h2,mysql的不会弄
gerrit.config:
[gerrit]
basePath = git
canonicalWebUrl = http://127.0.0.1:8081/
[database]
type = h2
hostname = localhost
database = reviewdb
username = gerrit2
[auth]
type = HTTP
[sendemail]
smtpServer = smtp.163.com
smtpServerPort = 25
smtpEncryption = TLS
smtpUser = xbl1986
[container]
user = gerrit2
javaHome = /usr/lib/jvm/java-6-openjdk-amd64/jre
[sshd]
listenAddress = *:29418
[httpd]
listenUrl = http://*:8081/
[cache]
directory = cache
然后apache2的配置:
/etc/apache2/sites-available/defaul