尝试在还安装了 Jenkins 的 Mac 上安装 Gerrit。到目前为止:
- 已成功通过 Brew 安装 MySQL。
- 将 Gerrit 的用户和数据库添加到 MySQL。
- 来自 https://gerrit-releases.storage.googleapis.com/index.html 的 gerrit.war 的 D/l
- 将 gerrit.war 安装到
~/Applications/Gerrit
- 在 gerrit.config 中将
canonicalWebUrl
设置为http://localhost:8080/gerrit/
- 使用
~/Applications/Gerrit/bin/gerrit.sh restart 重新启动 Gerrit
但是重启失败。似乎没有一致的 Mac Gerrit 设置指南,我觉得我陷入了这个问题。
Gerrit error_log 说:
ERROR com.google.gerrit.pgm.Daemon : Unable to start daemon
java.lang.IllegalStateException: Cannot start HTTP daemon
有人在 Mac 上运行此配置并可以给我一些帮助吗?
最佳答案
on a Mac that has also Jenkins installed
最有可能的原因是 Jenkins 已经在同一端口 (8080) 上运行。尝试将 Gerrit 的 canonicalWebUrl
更改为另一个端口(或更改 Jenkins 的端口)。
关于mysql - Mac Gerrit 设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46088820/