坚持Gerrit安装

时间:2016-04-27 15:41:05

标签: http gerrit

我开始使用Gerrit Code Review,我坚持使用安装。我在gerrit中的“etc”文件夹中有gerrit.conf文件。

我收到以下错误: enter image description here

这是我的gerrit.config文件:

        [gerrit]
           basePath = git
           canonicalWebUrl = http://localhost:8081/
        [database]
           type = mysql
           hostname = localhost
           database = reviewdb
           username = gerrit2
        [index]
           type = LUCENE
        [auth]
           type = HTTP
        [receive]
            enableSignedPush = false
        [sendemail]
            smtpServer = localhost
        [container]
            user = mvemur001c
            javaHome = C:\\Program Files\\Java\\jdk1.8.0_65\\jre
        [sshd]
             listenAddress = *:29418
        [httpd]
             listenUrl = http://*:8081/
        [cache]
             directory = cache

我还需要做其他事吗?我应该写下面的代码吗?如果我应该在哪里写这个apache配置文件?

  <VirtualHost *:8081>
    ServerName localhost

    ProxyRequests Off
    ProxyVia Off
    ProxyPreserveHost On

  <Proxy *>
      Order deny,allow
      Allow from all
   </Proxy>
  <Location "/login/">
 AuthType Basic
 AuthName "Gerrit Code Review"
 AuthBasicProvider file
 AuthUserFile /usr/local/apache/passwd/passwords
 Require valid-user
</Location>
ProxyPass / http://localhost:8081/

1 个答案:

答案 0 :(得分:0)

你不能让Gerrit和Apache同时在端口8081上运行。 Apache无法启动,对吧?请参阅https://scotch.io/tutorials/pretty-urls-in-angularjs-removing-the-hashtag。您目前正在直接连接到Gerrit而不是通过Apache。

更改Private Sub CommandButton1_Click() With Workbooks.Add ThisWorkbook.Sheets(1).Range(Range("A4"), Range("A4").End(xlDown)).Copy .Sheets(1).Range("A1") ThisWorkbook.Sheets(1).Range(Range("G4"), Range("G4").End(xlDown)).Copy .Sheets(1).Range("B1").PasteSpecial xlPasteValues Application.DisplayAlerts = False .SaveAs "C:\Users\my username\Desktop\Macro Demo\output.xlsx" Application.DisplayAlerts = True .Close End With End Sub <VirtualHost *:8081>指定的端口号。