Gerrit 在Ubuntu 11.04上的安装与配置

1,安装

下载地址:http://code.google.com/p/gerrit/downloads/list

或者用git取最新的code。

2、配置

archermind@archermind-desktop:~/work/Gerrit$ java -jar gerrit-2.4.2.war init -d gerrit

*** Gerrit Code Review 2.4.2
***

Create '/home/archermind/work/Gerrit/gerrit' [Y/n]? Y

*** Git Repositories
***

Location of Git repositories   [git]:

*** SQL Database
***

Database server type           [H2/?]:

*** User Authentication
***

Authentication method          [OPENID/?]:

*** Email Delivery
***

SMTP server hostname           [localhost]: smtp.archermind.com
SMTP server port               [(default)]: 25
SMTP encryption                [NONE/?]:
SMTP username                  [archermind]: 002640
002640's password              :
              confirm password :

*** Container Process
***

Run as                         [archermind]:
Java runtime                   [/home/archermind/tools/jdk1.6.0_20/jre]:
Copy gerrit.war to /home/archermind/work/Gerrit/gerrit/bin/gerrit.war [Y/n]? y
Copying gerrit.war to /home/archermind/work/Gerrit/gerrit/bin/gerrit.war

*** SSH Daemon
***

Listen on address              [*]:
Listen on port                 [29418]:

Gerrit Code Review is not shipped with Bouncy Castle Crypto v144
  If available, Gerrit can take advantage of features
  in the library, but will also function without it.
Download and install it now [Y/n]? y
Downloading http://www.bouncycastle.org/download/bcprov-jdk16-144.jar ... OK
Checksum bcprov-jdk16-144.jar OK
Generating SSH host key ... rsa... dsa... done

*** HTTP Daemon
***

Behind reverse proxy           [y/N]? n
Proxy uses SSL (https://)      [y/N]?
Subdirectory on proxy server   [/]:
Listen on address              [*]:
Listen on port                 [8081]: 8080
Canonical URL                  [http://archermind-desktop/]: http://10.52.31.25

Initialized /home/archermind/work/Gerrit/gerrit
Executing /home/archermind/work/Gerrit/gerrit/bin/gerrit.sh start
Starting Gerrit Code Review: OK
Waiting for server to start ... OK
Opening browser ...
archermind@archermind-desktop:~/work/Gerrit$ gerrit/bin/gerrit.sh start

Stopping Gerrit Code Review: OK

打开网址:http://10.52.31.25:8080

你可能感兴趣的:(server,ubuntu,git,database,Authentication,encryption)