现在,我的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/