如何更正 Apache2 Ubuntu 默认页面显示而不是 Gitlab

SRe*_*eca 3 apache installation configuration default gitlab

我正在尝试让 Gitlab 在已经运行 Apache2 的 Ubuntu 服务器上运行。

我首先按照https://about.gitlab.com/installation/#ubuntu?version=ce安装它,然后按照以下说明进行操作https://ryansechrest.com/2015/08/use-apache-instead-of-built -in-nginx-in-gitlab-ce/但我没有获得 Gitlab 设置页面,而是获得了 Apache2 默认页面。

该 URL 看起来已正确重定向。但是,当我查看 DocumentRoot 目录时,/opt/gitlab/embedded/service/gitlab-rails/public我没有看到索引页。我可以从 URL 访问deploy.html 页面。我猜它没有完全安装。但我不确定。

有什么建议吗?

sys*_*m1n 6

安装 Gitlab 时,请确保主机上没有安装 Apache 或 Nginx。

要查明是否安装了某个软件包:

dpkg -l | grep -e apache -e nginx

如果这不是原因,您可以显示 /etc/gitlab/gitlab.rb 文件的内容吗?您还可以使用以下命令检查一切是否正在运行:

gitlab-ctl status

如果没有,你可以检查 gitlab 日志文件 /var/log/gitlab/ 中是否有错误