Gitlab 安装 Ubuntu 12.04,已安装 Apache

Gitlab 安装 Ubuntu 12.04,已安装 Apache

我正在使用 Ubuntu 12.04。我已经在上面运行了 Apache、MySQL、Gitweb 和 Jenkins,但想尝试一下 Gitlab。

我下载了软件包并按照指示进行安装https://about.gitlab.com/downloads/

当我访问我选择的 URL 和端口(我有服务器的通配符 DNS)时,我收到 404 错误。

我不知道如何实现这一点,因为 Google 只谈论来自原始服务器的设置。我以前从未处理过 Ruby 或 nginx,所以不知道在正常设置中哪里可以找到它们的日志和配置,更不用说自定义设置了。

有人知道我该如何调试吗?我甚至不知道配置文件在哪里,因为它们都隐藏在 deb 中(也无法卸载)。

我的 /etc/gitlab/gitlab.rb 的内容如下:

# Change the external_url to the address your users will type in their browser
external_url 'http://localhost:8888/'
redis['port'] = 1234
postgresql['port'] = 2345
unicorn['port'] = 3456

[更新]

我设置了一个 apache 主机来反向代理到 gitlab,当我点击它时,我看到一个“503 - 服务暂时不可用”错误

答案1

正如这里提到的:

https://github.com/gitlabhq/gitlabhq/issues/6581

nginx 配置文件位于/opt/gitlab/embedded/conf/nginx.conf,您需要在该文件中手动更改端口。

我设置了 nginx 的端口号 - 似乎它在 ruby​​ 配置文件中被忽略了。当我重新启动所有程序后,它就正常工作了。

相关内容