zdc253212956 发表于 2018-9-19 08:38:23

centos部署配置gerrit+gitlab实现代码的review与自动同步

Using secure store: com.google.gerrit.server.securestore.DefaultSecureStore  
INFOcom.google.gerrit.server.config.GerritServerConfigProvider : No /home/gerrit/review_site/etc/gerrit.config; assuming defaults
  

  
*** Gerrit Code Review 2.14.6
  
***
  

  
Create '/home/gerrit/review_site' ? Y
  

  
*** Git Repositories
  
***
  

  
Location of Git repositories   : GerritResource#默认创建的项目存放路径,本文路径为/home/gerrit/review_site/GerritResource,用于保存 Gerrit 的 Git 仓库
  

  
*** SQL Database
  
***
  

  
Database server type         : mysql#数据库采用mysql
  

  
Gerrit Code Review is not shipped with MySQL Connector/J 5.1.41
  
**This library is required for your configuration. **
  
Download and install it now ? Y
  
Downloading https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.41/mysql-connector-java-5.1.41.jar ... OK
  
Checksum mysql-connector-java-5.1.41.jar OK
  
Server hostname                : gerrit.apicloud.com   #gerrit服务器对应的域名,请根据自身情况设置
  
Server port                  [(mysql default)]: 33070#数据库端口
  
Database name                  :#reviewdb为第一步数据库设置环境创建的数据库名称
  
Database username            :   #gerrit为第一步数据库设置环境创建的数据库用户名
  
gerrit's password            :    #输入数据库密码两遍
  
            confirm password :
  

  
*** Index
  
***
  

  
Type                           :
  

  
*** User Authentication
  
***
  

  
Authentication method          :
  
Enable signed push support   ?
  

  
*** Review Labels
  
***
  

  
Install Verified label         ?
  

  
*** Email Delivery
  
***
  

  
SMTP server hostname         : smtp.apicloud-mail.com   #配置邮件发送设置,gerrit默认是关闭支持smtp功能的,这里先暂时这样配置,后面请查看gerrit.conf文件的配置内容
  
SMTP server port               [(default)]: 465#默认是不开启ssl端口的,但是由于阿里云服务器全网禁25端口,这里配置使用ssl 465端口,详细配置请查看gerrit.conf文件的配置内容
  
SMTP encryption                :
  
SMTP username                  :
  
gerrit's password            :
  
            confirm password :
  

  
*** Container Process
  
***
  

  
Run as                         :
  
Java runtime                   :
  
Copy gerrit-2.14.6.war to review_site/bin/gerrit.war ? Y
  
Copying gerrit-2.14.6.war to review_site/bin/gerrit.war
  

  
*** SSH Daemon
  
***
  

  
Listen on address            
[*]:
  
Listen on port               :   #gerrit服务默认ssh端口,可以根据需要自行修改设置
  
Generating SSH host key ... rsa... dsa... ed25519... ecdsa 256... ecdsa 384... ecdsa 521... done
  

  
*** HTTP Daemon
  
***
  

  
Behind reverse proxy         ? y
  
Proxy uses SSL (https://)      ? y
  
Subdirectory on proxy server   [/]: proxy-#默认是监听代理到8080端口,为了避免与tomcat占用端口冲突,这里自定义8081,根据自身情况修改。
  
Listen on address            
[*]:
  
Listen on port               :
  

  
*** Cache
  
***
  

  

  
*** Plugins
  
***
  

  
Installing plugins.
  
Install plugin commit-message-length-validator version v2.14.6 ?
  
commit-message-length-validator v2.14.6 is already installed, overwrite it ?
  
Updated commit-message-length-validator to v2.14.6
  
Install plugin download-commands version v2.14.6 ?
  
download-commands v2.14.6 is already installed, overwrite it ?
  
Updated download-commands to v2.14.6
  
Install plugin hooks version v2.14.6 ?
  
hooks v2.14.6 is already installed, overwrite it ?
  
Updated hooks to v2.14.6
  
Install plugin replication version v2.14.6 ?
  
replication v2.14.6 is already installed, overwrite it ?
  
Updated replication to v2.14.6
  
Install plugin reviewnotes version v2.14.6 ?
  
reviewnotes v2.14.6 is already installed, overwrite it ?
  
Updated reviewnotes to v2.14.6
  
Install plugin singleusergroup version v2.14.6 ?
  
singleusergroup v2.14.6 is already installed, overwrite it ?
  
Updated singleusergroup to v2.14.6
  
Initializing plugins.


页: [1]
查看完整版本: centos部署配置gerrit+gitlab实现代码的review与自动同步