Ubuntu 在8080以外的端口上运行Gerrit

Ubuntu 在8080以外的端口上运行Gerrit,ubuntu,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 [rece

现在,我的
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服务器上运行这个,我需要更改gerrit运行的端口。我已经在同一端口(8080)上安装了Jenkins

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

将端口更改为8085后,我运行了
/gerrit.sh start
,这导致
启动gerrit code Review:OK
,但仍然没有响应


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

您需要更改以下内容:

[httpd]
    listenUrl = http://localhost:8085/
如果我是你。 我安装了gerrit用户重新索引

安装gerrit时。输入端口号

当你安装gerrit时。“gerrit.config”文件将被更改

[格瑞特]

basePath=git

服务器ID=72317765-a256-4938-a998-5d6xxxxxxed1

canonicalWebUrl=

[httpd]

李斯特努尔=


试试~

已尝试,重新启动
gerrit
,并显示
启动gerrit code Review:OK
http://x.x.x.x:8085/
不会响应。我也试过9999端口,以防万一8085也被占用了。嗯。。。我仔细检查了一下,我认为没有任何其他配置需要更改。您可以使用“nmap主机”检查端口