手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Gerrit 在Fedora上的安装配置

[日期:2011-08-27] 来源:Linux社区  作者:waynebuaa [字体:大 中 小]

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 的配置文件    /etc/httpd/conf.d/gerrit.conf

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

Fedora 上的sun  jre 配置的命令:

  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 java /usr/java/jre1.6.0_27/bin/java 20000  
  4.   sudo alternatives  --config java  
  5.   java -version  
linux
相关资讯       Fedora安装  Gerrit 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款