【问题标题】:Gitlab-omnibus not running on 8080Gitlab-omnibus 没有在 8080 上运行
【发布时间】:2014-12-05 10:01:58
【问题描述】:

我想让 gitlab 在 8080 端口上运行,因为我有 apache 在 80 端口上运行,并且想为 gitlab 设置一个代理。

但是在使用命令安装 gitlab 之后:

wget https://downloads-packages.s3.amazonaws.com/debian-7.6/gitlab_7.5.2-omnibus.5.2.1.ci-1_amd64.deb
sudo apt-get install openssh-server
sudo apt-get install postfix
sudo dpkg -i gitlab_7.5.2-omnibus.5.2.1.ci-1_amd64.deb

我将 /etc/gitlab/gitlab.rb 更改为包含:

external_url "http://gitlab.mydomain.com:8080"

并执行命令:

sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart

但我仍然无法通过“http://gitlab.mydomain.com:8080”访问 gitlab 我找不到解决问题的方法。

【问题讨论】:

    标签: apache gitlab


    【解决方案1】:

    您可能想查看您的gitlab.yml config file

    ## GitLab settings
    gitlab:
    ## Web server settings (note: host is the FQDN, do not include http://)
    host: localhost
    port: 80 # Set to 443 if using HTTPS, see installation.md#using-https for additional HTTPS configuration details
    

    将端口更改为 8080 应该会有所帮助。

    【讨论】:

    • 感谢您的回复,但在 gitlab.yml 中端口已更改为端口:8080
    • 如果端口已在gitlab.yml 中设置为8080,请运行gitlab-ctl reconfigure 以应用此参数
    【解决方案2】:

    我的问题的解决方案是我没有安装 git。 这是因为我按照https://about.gitlab.com/downloads/ 上的说明进行操作 使用 dfebian 7,因为那是我的操作系统。它从来没有说过我必须在安装 gitlab 之前在我的系统上安装 git。 (我错误地认为 gitlab 会为我安装它并且很容易解决)

    【讨论】:

    【解决方案3】:

    最近为gitlab.rb 中的所有可能设置引入了template。你要添加的是

    nginx['redirect_http_to_https_port'] = 8080
    

    然后运行重新配置。

    https://gitlab.com/gitlab-org/omnibus-gitlab/blob/9e97671d8dee3ea6a7bbb99347ad279b65689f28/files/gitlab-config-template/gitlab.rb.template#L316

    【讨论】:

      猜你喜欢
      • 2016-06-27
      • 1970-01-01
      • 2014-06-24
      • 1970-01-01
      • 1970-01-01
      • 2015-06-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多