|
Using secure store: com.google.gerrit.server.securestore.DefaultSecureStore
*** Gerrit Code Review 2.11.2
***
Create '/home/gerrit/gerrit' [Y/n]?
*** Git Repositories
***
Location of Git repositories [git]:
*** SQL Database
***
Database server type [h2]: mysqlGerrit Code Review is not shipped with MySQL Connector/J 5.1.21
** This library is required for your configuration. **
Download and install it now [Y/n]?
Downloading http://repo2.maven.org/maven2/mysql/mysql-connector-java/5.1.21/mysql-connector-java-5.1.21.jar ... OK
Checksum mysql-connector-java-5.1.21.jar OK
Server hostname [localhost]:
Server port [(mysql default)]:
注意:下面四行为mysql配置数据库时候的信息了
Database name [reviewdb]: gerritdbDatabase username [root]: gerritusergerrituser's password :
confirm password :
*** Index
***
Type [LUCENE/?]:
*** User Authentication
***
Authentication method [OPENID/?]: httpGet username from custom HTTP header [y/N]?
SSO logout URL :
*** Review Labels
***
安装Verified标签,如果没安装,在[Ubuntu之Gitlab、Gerrit、Jenkins协调工作配置](http://blog.csdn.net/stwstw0123/article/details/47615535) 里则需要配置Verified标签Install Verified label [y/N]? y*** Email Delivery
***
下面几行很明显为SMTP的信息SMTP server hostname [localhost]: mail.vzjc.comSMTP server port [(default)]: 587SMTP encryption [NONE/?]: tls根据具体情况来配置SMTP username [root]: gerrit@vzjc.comgerrit@zjc.com's password :
confirm password :
*** Container Process
***
Run as [root]: gerritJava runtime [/usr/lib/jvm/java-7-openjdk-amd64/jre]:
Copy gerrit-2.11.2.war to /etc/gerrit/bin/gerrit.war [Y/n]?
Copying gerrit-2.11.2.war to /etc/gerrit/bin/gerrit.war
*** SSH Daemon
***
Listen on address
:
Listen on port [29418]:
Gerrit Code Review is not shipped with Bouncy Castle Crypto SSL v151
If available, Gerrit can take advantage of features
in the library, but will also function without it.
Download and install it now [Y/n]?
Downloading http://www.bouncycastle.org/download/bcpkix-jdk15on-151.jar ... OK
Checksum bcpkix-jdk15on-151.jar OK
Gerrit Code Review is not shipped with Bouncy Castle Crypto Provider v151
** This library is required by Bouncy Castle Crypto SSL v151. **
Download and install it now [Y/n]?
Downloading http://www.bouncycastle.org/download/bcprov-jdk15on-151.jar ... OK
error: SHA-1 checksum does not match此处不匹配,我也不懂了,选`y`吧 | 还有时候会直接校验通过,那么就恭喜了Use bcprov-jdk15on-151.jar anyway [y/n]? y
Generating SSH host key ... rsa(simple)... done
*** HTTP Daemon
***
Behind reverse proxy [y/N]? yProxy uses SSL (https://) [y/N]?
Subdirectory on proxy server [/]:
Listen on address
:
Listen on port [8081]: 8082Canonical URL [http://zjc.com/]: http://review.zjc.com/*** Plugins
***
Installing plugins.
Install plugin reviewnotes version v2.11.2 [y/N]? yInstall plugin replication version v2.11.2 [y/N]? yInstall plugin download-commands version v2.11.2 [y/N]? yInstall plugin singleusergroup version v2.11.2 [y/N]? yInstall plugin commit-message-length-validator version v2.11.2 [y/N]? yInitializing plugins.
No plugins found with init steps.下面就不用理了,我们会用nginx来做转发和访问控制Initialized /etc/gerrit
Executing /etc/gerrit/bin/gerrit.sh start
Starting Gerrit Code Review: OK
Waiting for server on review.zjc.com:80 ... OK
Opening http://review.zjc.com/#/admin/projects/ ...OK
|
|
|
|
|
|
|