Gerrit installation configuration on Fedora

Source: Internet
Author: User
Review_site/etc/gerrit. config [gerrit] basePath = repositories & nbsp

Review_site/etc/gerrit. config

  1. [Gerrit]
  2. BasePath=Repositories
  3. CanonicalWebUrl=Http: // Xx. x. xx. xxx/gerrit/
  4. [Database]
  5. Type=MYSQL
  6. Hostname=Localhost
  7. Database=Reviewdb
  8. Username=Gerrit123
  9. [Auth]
  10. Type=HTTP
  11. LogoutUrl=Http: // Www.windriver.com/
  12. [Sendemail]
  13. SmtpSmtpServer= Smtp.mail.yahoo.com.cn
  14. SmtpUser=Wxbuaa
  15. SmtpServerPort=465
  16. SmtpEncryption=SSL
  17. [User]
  18. Name=Xxxxx. Xx
  19. Email=Wxbuaa@ Yahoo.com.cn
  20. [Container]
  21. User=Gerrit222
  22. JavaHome=/Usr/java/jre1.6.0 _ 27/
  23. [Sshd]
  24. ListenAddress*: 29418
  25. [Httpd]
  26. ListenUrl=Proxy-Http: // *: 8080/gerrit/
  27. [Cache]
  28. Directory=Cache
  29. ~

Apache configuration file/etc/httpd/conf. d/gerrit. conf

  1. <VirtualHost*: 80>
  2. ServerName xx. x. xx. xxx
  3. ProxyRequests Off
  4. ProxyVia Off
  5. ProxyPreserveHost On
  6. <Proxy*>
  7. Order deny, allow
  8. Allow from all
  9. Proxy>
  10. <Location/Gerrit/>
  11. AuthType Basic
  12. AuthName "Gerrit Code Review"
  13. Require valid-user
  14. AuthUserFile/home/gerrit2/review_site/etc/passwd
  15. Location>
  16. ProxyPass/gerrit/http: // 127.5.0.0.1: 8080/gerrit/
  17. VirtualHost>

The sun jre configuration command on Fedora:

  1. Sudo chmod + x./jre-6u27-linux-i586-rpm.bin
  2. Sudo./jre-6u27-linux-i586-rpm.bin
  3. Sudo alternatives -- install/usr/bin/java/usr/java/jre1.6.0 _ 27/bin/java 20000
  4. Sudo alternatives -- config java
  5. Java-version
Related Article

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.