Welcome 微信登录

首页 / 操作系统 / Linux / Gerrit 在Ubuntu 11.04上的安装与配置

1,安装下载地址:http://code.google.com/p/gerrit/downloads/list或者用git取最新的code。2、配置如果你是用git或者源码的话,可以参考 源码的 Documentation/install.txt先配置好 数据库,我选的是mysqlCREATE USER "xwang4"@"localhost" IDENTIFIED BY "yoyo";CREATE DATABASE reviewdb;ALTER DATABASE reviewdb charset=latin1;GRANT ALL ON reviewdb.* TO "xwang4"@"localhost";FLUSH PRIVILEGES;然后初始化:# java -jar gerrit-2.2.1.war init -d /home/xwang4/kunlun/gerrit/sites
  1. xwang4@PEK-xwang4-Ubuntu:~/kunlun/gerrit$ java -jar gerrit-2.2.1.war init -d /home/xwang4/kunlun/gerrit/sites  
  2.   
  3. *** Gerrit Code Review 2.2.1  
  4. ***   
  5.   
  6.   
  7. *** Git Repositories  
  8. ***   
  9.   
  10. Location of Git repositories   [/home/xwang4/workspace/gingerbread-kunlun/devel]:   
  11.   
  12. *** SQL Database  
  13. ***   
  14.   
  15. Database server type           [MYSQL/?]:   
  16. Server hostname                [localhost]:   
  17. Server port                    [(MYSQL default)]:   
  18. Database name                  [reviewdb]:   
  19. Database username              [xwang4]:   
  20. Change xwang4"s password       [y/N]?   
  21.   
  22. *** User Authentication  
  23. ***   
  24.   
  25. Authentication method          [DEVELOPMENT_BECOME_ANY_ACCOUNT/?]: ?  
  26.        Supported options are:  
  27.          openid  
  28.          http  
  29.          http_ldap  
  30.          client_ssl_cert_ldap  
  31.          ldap  
  32.          ldap_bind  
  33.          development_become_any_account  
  34. Authentication method          [DEVELOPMENT_BECOME_ANY_ACCOUNT/?]: openid  
  35.   
  36. *** Email Delivery  
  37. ***   
  38.   
  39. SMTP server hostname           [hhhhhhhhhhhhhhhhhhhhhhhhhhhh]:   
  40. SMTP server port               [25]:   
  41. SMTP encryption                [TLS/?]:   
  42. SMTP username                  [xwang4]:   
  43. Change xwang4"s password       [y/N]?   
  44.   
  45. *** Container Process  
  46. ***   
  47.   
  48. Run as                         [xwang4]:   
  49. Java runtime                   [/usr/lib/jvm/java-6-sun-1.6.0.26/jre]:   
  50. Upgrade /home/xwang4/kunlun/gerrit/sites/bin/gerrit.war [Y/n]?   
  51. Copying gerrit.war to /home/xwang4/kunlun/gerrit/sites/bin/gerrit.war  
  52.   
  53. *** SSH Daemon  
  54. ***   
  55.   
  56. Listen on address              [*]:   
  57. Listen on port                 [29418]:   
  58.   
  59. *** HTTP Daemon  
  60. ***   
  61.   
  62. Behind reverse proxy           [y/N]?   
  63. Use SSL (https://)             [y/N]?   
  64. Listen on address              [*]:   
  65. Listen on port                 [8088]:   
  66. Canonical URL                  [http://PEK-xwang4-ubuntu:8088/]:   
然后启动:  bin/gerrit.sh restart如果使用openid的话,注册的时候,会提示:Provider is not supported, or was incorrectly entered.sudo ln -sf /etc/java-6-sun/security/cacerts /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts  VMWare中安装RedHat Linux 9的时候安装第二个盘时提示光盘无法被挂载Ubuntu 11.04 成功安装 Cisco ASDM Launcher相关资讯      Ubuntu 11.04  Gerrit 
  • Gerrit 2.12.0 正式发布下载,代码  (01月04日)
  • Gerrit 2.12.0 RC2 发布下载,代码  (12/08/2015 09:02:20)
  • Gerrit 2.11.4 发布,代码评审工具  (10/26/2015 17:13:28)
  • Gerrit 2.11.5 发布下载,代码评审  (12/14/2015 13:25:27)
  • Gerrit 2.12.0 RC1 发布下载,代码  (11/30/2015 10:13:28)
  • Gerrit 2.11.3 发布下载,代码评审  (08/24/2015 19:54:01)
本文评论 查看全部评论 (0)
表情: 姓名: 字数