ubuntu - 在 8080 以外的端口上运行 Gerrit

标签 ubuntu gerrit

现在,我的gerrit.config好像:

[gerrit]
    basePath = git
    serverId = 72317765-a256-4938-a998-5d6xxxxxxed1
    canonicalWebUrl = http://localhost:8080/
[database]
    type = h2
    database = /root/gerrit_setup/db/ReviewDB
[auth]
    type = OPENID
[receive]
    enableSignedPush = false
[sendemail]
    smtpServer = localhost
[container]
    user = root
    javaHome = /usr/lib/jvm/java-7-openjdk-i386/jre
[sshd]
    listenAddress = *:29418
[httpd]
    listenUrl = http://*:8080/
[cache]
    directory = cache

我在 AWS Ubuntu 服务器上运行它,我需要更改 PORT gerrit 运行。我已经在同一个端口(8080)上设置了 Jenkins。

我尝试更改 gerrit.canonicalWebUrl到 8085 但我怀疑它是否与 httpd.port 有关配置。

将端口更改为 8085 后,我运行了 ./gerrit.sh start这导致了Starting Gerrit Code Review: OK但仍然没有回复 http://x.x.x.x:8085/ .

我在服务器(或任何其他工具)上配置代码审查工具方面是全新的,所以请逐步描述一个解决方案。

最佳答案

您需要更改以下内容:

[httpd]
    listenUrl = http://localhost:8085/

关于ubuntu - 在 8080 以外的端口上运行 Gerrit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42725610/

相关文章:

git - 如何在 Gerrit 中识别 "unused"存储库?

Ubuntu 16.04 | Upstart 在启动后立即杀死我的进程

linux - pm2 log-rotate with ansible

git - Jenkins 和 Gerrit 与 google repo scm 的集成

git - 让 GitHub 和 Gerrit 玩得开心

java - 为什么 Docker 中的 Gerrit 找不到 JAVA_HOME?

c++ - 如何编译qtconnectivity(蓝牙)?

.htaccess - Apache 2.4.6 default.conf 格式已更改。无法运行 .htaccess

shell - 使用 "become: true"在 Ansible 不工作的情况下更改默认 shell

git - Jenkins 的 Gerrit 触发器找不到要构建的任何修订