安装maven
$ sudo apt-cache search maven
maven-debian-helper - Helper tools for building Debian packages with Maven
maven2 - Java software project management and comprehension tool
$ sudo apt-get install maven2
使用gerrit版本
gerrit2@ubuntu:~/env$ ls -l gerrit-2.6-rc1.war
-rw-r--r-- 1 gerrit2 gerrit2 30220186 2013-04-30 09:08 gerrit-2.6-rc1.war
使能apache2反向代理模块
gerrit2@ubuntu:/etc/apache2/mods-enabled$ ls -l proxy.conf proxy.load proxy_http.load
lrwxrwxrwx 1 root root 28 2013-04-30 11:40 proxy.conf -> ../mods-available/proxy.conf
lrwxrwxrwx 1 root root 33 2013-04-30 11:40 proxy_http.load -> ../mods-available/proxy_http.load
lrwxrwxrwx 1 root root 28 2013-04-30 11:40 proxy.load -> ../mods-available/proxy.load
apache2配置文件
gerrit2@ubuntu:/etc/apache2$ cat sites-enabled/default
<VirtualHost *:80>
ServerName 192.168.1.99
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
AuthType Basic
AuthName "Gerrit Code Review"
Require valid-user
AuthBasicProvider file
AuthUserFile /home/gerrit2/review_site/etc/passwords
</Location>
ProxyPass / http://127.0.0.1:8080/
</VirtualHost>
gerrit配置文件
gerrit2@ubuntu:~/review_site$ cat etc/gerrit.config
[gerrit]
basePath = git
canonicalWebUrl = http://192.168.1.99
[database]
type = h2
database = db/ReviewDB
[auth]
type = HTTP
[sendemail]
smtpServer = localhost
$ sudo apt-cache search maven
maven-debian-helper - Helper tools for building Debian packages with Maven
maven2 - Java software project management and comprehension tool
$ sudo apt-get install maven2
使用gerrit版本
gerrit2@ubuntu:~/env$ ls -l gerrit-2.6-rc1.war
-rw-r--r-- 1 gerrit2 gerrit2 30220186 2013-04-30 09:08 gerrit-2.6-rc1.war
使能apache2反向代理模块
gerrit2@ubuntu:/etc/apache2/mods-enabled$ ls -l proxy.conf proxy.load proxy_http.load
lrwxrwxrwx 1 root root 28 2013-04-30 11:40 proxy.conf -> ../mods-available/proxy.conf
lrwxrwxrwx 1 root root 33 2013-04-30 11:40 proxy_http.load -> ../mods-available/proxy_http.load
lrwxrwxrwx 1 root root 28 2013-04-30 11:40 proxy.load -> ../mods-available/proxy.load
apache2配置文件
gerrit2@ubuntu:/etc/apache2$ cat sites-enabled/default
<VirtualHost *:80>
ServerName 192.168.1.99
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
AuthType Basic
AuthName "Gerrit Code Review"
Require valid-user
AuthBasicProvider file
AuthUserFile /home/gerrit2/review_site/etc/passwords
</Location>
ProxyPass / http://127.0.0.1:8080/
</VirtualHost>
gerrit配置文件
gerrit2@ubuntu:~/review_site$ cat etc/gerrit.config
[gerrit]
basePath = git
canonicalWebUrl = http://192.168.1.99
[database]
type = h2
database = db/ReviewDB
[auth]
type = HTTP
[sendemail]
smtpServer = localhost