Gerrit installation and configuration on Ubuntu11.04

Source: Internet
Author: User
1. Install: http://code.google.com/p/gerrit/downloads/listparts and use gitto obtain the latest code. 2. Configure if you use git or the source code, you can refer to the source code Documentation/install.txt to configure the database first. I chose mysqlCREATEUSER 'xwang4' @ 'localhost' IDENTIFIEDBY

1. Install

: Http://code.google.com/p/gerrit/downloads/list

Or use git to obtain the latest code.

2. Configuration

If you use git or the source code, you can refer to the source code Documentation/install.txt.

Configure the database first. I chose mysql.

Create user 'xang4' @ 'localhost' identified by 'yoyo ';

Create database reviewdb;

Alter database reviewdb charset = latin1;

Grant all on reviewdb. * TO 'xang4' @ 'localhost ';

Flush privileges;

Then initialize:

# 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. *** Gerrit Code Review 2.2.1
  3. ***
  4. * ** Git Repositories
  5. ***
  6. Location of Git repositories [/home/xwang4/workspace/gingerbread-kunlun/devel]:
  7. * ** SQL Database
  8. ***
  9. Database server type [MYSQL/?] :
  10. Server hostname [localhost]:
  11. Server port [(MYSQL default)]:
  12. Database name [reviewdb]:
  13. Database username [xwang4]:
  14. Change xwang4's password [y/N]?
  15. * ** User Authentication
  16. ***
  17. Authentication method [DEVELOPMENT_BECOME_ANY_ACCOUNT/?] :?
  18. Supported options are:
  19. Openid
  20. Http
  21. Http_ldap
  22. Client_ssl_cert_ldap
  23. Ldap
  24. Ldap_bind
  25. Development_become_any_account
  26. Authentication method [DEVELOPMENT_BECOME_ANY_ACCOUNT/?] : Openid
  27. * ** Email Delivery
  28. ***
  29. SMTP server hostname [hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh]:
  30. SMTP server port [25]:
  31. SMTP encryption [TLS/?] :
  32. SMTP username [xwang4]:
  33. Change xwang4's password [y/N]?
  34. *** Container Process
  35. ***
  36. Run as [xwang4]:
  37. Java runtime [/usr/lib/jvm/java-6-sun-1.6.0.26/jre]:
  38. Upgrade/home/xwang4/kunlun/gerrit/sites/bin/gerrit. war [Y/n]?
  39. Copying gerrit. war to/home/xwang4/kunlun/gerrit/sites/bin/gerrit. war
  40. * ** SSH Daemon
  41. ***
  42. Listen on address [*]:
  43. Listen on port [29418]:
  44. * ** HTTP Daemon
  45. ***
  46. Behind reverse proxy [y/N]?
  47. Use SSL (https: //) [y/N]?
  48. Listen on address [*]:
  49. Listen on port [8088]:
  50. Canonical URL [http: // PEK-xwang4-ubuntu: 8088/]:

Start: bin/gerrit. sh restart

If openid is used, the following message is displayed during registration: 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

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.