【发布时间】:2017-03-10 18:42:52
【问题描述】:
现在,我的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/ 仍然没有响应。
我对在服务器上配置代码审查工具(或任何其他工具)完全陌生,所以请逐步描述解决方案。
【问题讨论】: